Item | DT | Card | Conf | Description | Label |
---|
| Variable let | Name | ap | |
| Value | doc('include/cs-2.16.756.5.30.1.127.77.6.5.1-DYNAMIC.xml') | |
| Variable let | Name | apunits | |
| Value | $ap//concept[property/code[@value='unit']] | |
| Variable let | Name | apsection | |
| Value | $ap//concept[property/code[@value='specialtySection']] | |
| Variable let | Name | oc | |
| Value | hl7:code/@code | |
| Variable let | Name | ovu | |
| Value | hl7:value/@unit | |
| Variable let | Name | dc | |
| Value | $apunits[code/@value=$oc]/property[code/@value='unit']/valueCode/@value | |
| Schematron assert | role | error | |
| test | string-length($ovu)=0 or count($apunits[code/@value=$oc])=0 or count($dc)=0 or $ovu=$dc | |
| Message | (Laborresultatlrtp): Observations with code <value-of select="$oc"/> must have unit(s) <value-of select="$dc"/>. | |
| Variable let | Name | osectioncode | |
| Value | ancestor::hl7:section/hl7:code/@code | |
| Variable let | Name | dc | |
| Value | $apsection[code/@value=$oc]/property[code/@value='specialtySection']/valueCode/@value | |
| Variable let | Name | dn | |
| Value | $apsection[code/@value=$oc]/property[code/@value='specialtySectionName']/valueString/@value | |
| Schematron assert | role | error | |
| test | string-length($osectioncode)=0 or string-length($dc)=0 or $osectioncode = $dc | |
| Message | (Laborresultatlrtp): Observations with code <value-of select="$oc"/> must appear within a section with code <value-of select="$dc"/><value-of select="$dn"/>, found <value-of select="$osectioncode"/>. | |