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 letNameapDataTypes 
 Value$ap//concept[property/code[@value='dataType']] 
 Variable letNameapObservationValuePresent 
 Value$ap//concept[property/code[@value='observationValuePresent']] 
 Variable letNameapInterpretationCodePOSNEGIND 
 Value$ap//concept[property/code[@value='interpretationCodePOSNEGIND']] 
 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 
 MessageObservations with code <value-of select="$oc"/> shall 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 
 MessageObservations with code <value-of select="$oc"/> shall appear within a section with code <value-of select="$dc"/><value-of select="$dn"/>, found <value-of select="$osectioncode"/>. 
 Variable letNameapDataTypes 
 Value$ap//concept[property/code[@value='dataType']] 
 Variable letNamedtr 
 Value$apDataTypes[code/@value=$oc]/property[code/@value='dataType']/valueCode/@value 
 Schematron assertrolered error 
 teststring-length($dtr)=0 or hl7:value[@xsi:type=$dtr] 
 MessageDatatype of the value element (xsi:type) shall be <value-of select="$dtr"/> 
 Variable letNameapObservationValuePresent 
 Value$ap//concept[property/code[@value='observationValuePresent']] 
 Variable letNamevpre 
 Value$apObservationValuePresent[code/@value=$oc]/property[code/@value='observationValuePresent']/valueBoolean/@value 
 Schematron assertrolered error 
 teststring-length($vpre)=0 or $vpre='false' or hl7:value 
 MessageObservations with code <value-of select="$oc"/> shall have a value element. 
 Schematron assertrolered error 
 teststring-length($vpre)=0 or $vpre='true' or not(hl7:value) 
 MessageObservations with code <value-of select="$oc"/> shall not have a value element. 
 Variable letNameapInterpretationCodePOSNEGIND 
 Value$ap//concept[property/code[@value='interpretationCodePOSNEGIND']] 
 Variable letNameicd 
 Value$apInterpretationCodePOSNEGIND[code/@value=$oc]/property[code/@value='interpretationCodePOSNEGIND']/valueBoolean/@value 
 Schematron assertrolered error 
 teststring-length($icd)=0 or $icd='false' or hl7:interpretationCode/@nullFlavor or hl7:interpretationCode/@code=('POS','NEG','IND') 
 MessageObservations with code <value-of select="$oc"/> shall have a interpretationCode element that shall be valued with POS','NEG' or 'IND'.