[759] | 1 | <?xml version="1.0" encoding="utf-8"?>
|
---|
| 2 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="urn:hl7-org:v3" xmlns:a="urn:astm-org:CCR" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exclude-result-prefixes="a">
|
---|
| 3 | <xsl:template name="ccdMedicationFrequency">
|
---|
| 4 | <xsl:param name="frequency"/>
|
---|
| 5 | <xsl:if test="$frequency">
|
---|
| 6 | <xsl:choose>
|
---|
| 7 | <xsl:when test="$frequency/a:Value='qd'">
|
---|
| 8 | <effectiveTime xsi:type="PIVL_TS" operator="A">
|
---|
| 9 | <xsl:attribute name="institutionSpecified">true</xsl:attribute>
|
---|
| 10 | <period>
|
---|
| 11 | <xsl:attribute name="value">24</xsl:attribute>
|
---|
| 12 | <xsl:attribute name="unit">h</xsl:attribute>
|
---|
| 13 | </period>
|
---|
| 14 | </effectiveTime>
|
---|
| 15 | </xsl:when>
|
---|
| 16 | <xsl:when test="$frequency/a:Value='bid'">
|
---|
| 17 | <effectiveTime xsi:type="PIVL_TS" operator="A">
|
---|
| 18 | <xsl:attribute name="institutionSpecified">true</xsl:attribute>
|
---|
| 19 | <period>
|
---|
| 20 | <xsl:attribute name="value">12</xsl:attribute>
|
---|
| 21 | <xsl:attribute name="unit">h</xsl:attribute>
|
---|
| 22 | </period>
|
---|
| 23 | </effectiveTime>
|
---|
| 24 | </xsl:when>
|
---|
| 25 | <xsl:when test="$frequency/a:Value='tid'">
|
---|
| 26 | <effectiveTime xsi:type="PIVL_TS" operator="A">
|
---|
| 27 | <xsl:attribute name="institutionSpecified">true</xsl:attribute>
|
---|
| 28 | <period>
|
---|
| 29 | <xsl:attribute name="value">8</xsl:attribute>
|
---|
| 30 | <xsl:attribute name="unit">h</xsl:attribute>
|
---|
| 31 | </period>
|
---|
| 32 | </effectiveTime>
|
---|
| 33 | </xsl:when>
|
---|
| 34 | <xsl:when test="$frequency/a:Value='qid'">
|
---|
| 35 | <effectiveTime xsi:type="PIVL_TS" operator="A">
|
---|
| 36 | <xsl:attribute name="institutionSpecified">true</xsl:attribute>
|
---|
| 37 | <period>
|
---|
| 38 | <xsl:attribute name="value">6</xsl:attribute>
|
---|
| 39 | <xsl:attribute name="unit">h</xsl:attribute>
|
---|
| 40 | </period>
|
---|
| 41 | </effectiveTime>
|
---|
| 42 | </xsl:when>
|
---|
| 43 | <xsl:when test="$frequency/a:Value='qam'">
|
---|
| 44 | <effectiveTime xsi:type='EIVL' operator='A'>
|
---|
| 45 | <event code='ACM'/>
|
---|
| 46 | </effectiveTime>
|
---|
| 47 | </xsl:when>
|
---|
| 48 | <xsl:when test="$frequency/a:Value='qpm'">
|
---|
| 49 | <effectiveTime xsi:type='EIVL' operator='A'>
|
---|
| 50 | <event code='PCV'/>
|
---|
| 51 | </effectiveTime>
|
---|
| 52 | </xsl:when>
|
---|
| 53 | </xsl:choose>
|
---|
| 54 | </xsl:if>
|
---|
| 55 | </xsl:template>
|
---|
| 56 | </xsl:stylesheet>
|
---|