Template

Show index

Template Check Properties 2017‑08‑01

Id2.16.756.5.30.1.127.10.4.35Effective Date2017‑08‑01
Statusdraft DraftVersion Label
NameCheckPropertiesDisplay NameCheck Properties
DescriptionCDA-CH LRTP Code System Additional Properties for Lab Results Check
Open/ClosedOpen (other than defined elements are allowed)
Used by / Uses
Used by 0 transactions and 2 templates, Uses 0 templates
Used by as NameVersion
2.16.756.5.30.1.127.10.4.32Includedraft Laborresultat (lrtp)2016‑07‑20
2.16.756.5.30.1.127.10.4.37Includedraft Vital Signs Observation (lrtp) (2017)2017‑08‑14
ItemDTCardConfDescriptionLabel
 Variable letNameap 
 Valuedoc('include/cs-2.16.756.5.30.1.127.77.6.5.1-DYNAMIC.xml') 
 Variable letNameapunits 
 Value$ap//concept[property/code[@value='unit']] 
 Variable letNameapsection 
 Value$ap//concept[property/code[@value='specialtySection']] 
 Variable letNameoc 
 Valuehl7:code/@code 
 Variable letNameovu 
 Valuehl7:value/@unit 
 Variable letNamedc 
 Value$apunits[code/@value=$oc]/property[code/@value='unit']/valueCode/@value 
 Schematron assertrolered error 
 teststring-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 letNameosectioncode 
 Valueancestor::hl7:section/hl7:code/@code 
 Variable letNamedc 
 Value$apsection[code/@value=$oc]/property[code/@value='specialtySection']/valueCode/@value 
 Variable letNamedn 
 Value$apsection[code/@value=$oc]/property[code/@value='specialtySectionName']/valueString/@value 
 Schematron assertrolered error 
 teststring-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"/>.