Back To Index  <<  Back To Templates

draft Template  Check Properties

Id 2.16.756.5.30.1.127.10.4.35 Effective Date 2017‑08‑01
Status draft Draft Version Label
Name CheckProperties Display Name Check Properties
Description CDA-CH LRTP Code System Additional Properties for Lab Results Check
Open/Closed Open (other than defined elements are allowed)
Used by / Uses
Used by 0 transactions and 9 templates, Uses 0 templates
Used by as Name Version
2.16.756.5.30.1.127.10.4.32 Include draft Laborresultat (lrtp) 2016‑07‑20
2.16.756.5.30.1.127.10.4.31 link draft Resultatgruppe (lrtp) 2016‑07‑20
2.16.756.5.30.1.127.10.4.30 link draft Befundgruppe (lrtp) 2016‑07‑20
2.16.756.5.30.1.127.10.3.12 link draft Laborbefund Section (lrtp) 2016‑07‑02
2.16.756.5.30.1.127.10.1.3 link draft Laborbefund Transplantationsprozesss 2017‑08‑14
2.16.756.5.30.1.127.10.1.3 link retired Laborbefund Transplantationsprozesss 2016‑07‑02
2.16.756.5.30.1.127.10.4.37 Include draft Vital Signs Observation (lrtp) (2017) 2017‑08‑14
2.16.756.5.30.1.127.10.4.36 link draft Vital Signs Organizer Entry (lrtp) (2017) 2017‑08‑14
2.16.756.5.30.1.127.10.3.13 link draft Coded Vital Signs Section (lrtp) (2017) 2017‑08‑14
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 apDataTypes  
  Value $ap//concept[property/code[@value='dataType']]  
  Variable let Name apObservationValuePresent  
  Value $ap//concept[property/code[@value='observationValuePresent']]  
  Variable let Name apInterpretationCodePOSNEGIND  
  Value $ap//concept[property/code[@value='interpretationCodePOSNEGIND']]  
  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 red error  
  test string-length($ovu)=0 or count($apunits[code/@value=$oc])=0 or count($dc)=0 or $ovu=$dc  
  Message Observations with code <value-of select="$oc"/> shall 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 red error  
  test string-length($osectioncode)=0 or string-length($dc)=0 or $osectioncode = $dc  
  Message Observations 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 let Name apDataTypes  
  Value $ap//concept[property/code[@value='dataType']]  
  Variable let Name dtr  
  Value $apDataTypes[code/@value=$oc]/property[code/@value='dataType']/valueCode/@value  
  Schematron assert role red error  
  test string-length($dtr)=0 or hl7:value[@xsi:type=$dtr]  
  Message Datatype of the value element (xsi:type) shall be <value-of select="$dtr"/>  
  Variable let Name apObservationValuePresent  
  Value $ap//concept[property/code[@value='observationValuePresent']]  
  Variable let Name vpre  
  Value $apObservationValuePresent[code/@value=$oc]/property[code/@value='observationValuePresent']/valueBoolean/@value  
  Schematron assert role red error  
  test string-length($vpre)=0 or $vpre='false' or hl7:value  
  Message Observations with code <value-of select="$oc"/> shall have a value element.  
  Schematron assert role red error  
  test string-length($vpre)=0 or $vpre='true' or not(hl7:value)  
  Message Observations with code <value-of select="$oc"/> shall not have a value element.  
  Variable let Name apInterpretationCodePOSNEGIND  
  Value $ap//concept[property/code[@value='interpretationCodePOSNEGIND']]  
  Variable let Name icd  
  Value $apInterpretationCodePOSNEGIND[code/@value=$oc]/property[code/@value='interpretationCodePOSNEGIND']/valueBoolean/@value  
  Schematron assert role red error  
  test string-length($icd)=0 or $icd='false' or hl7:interpretationCode/@nullFlavor or hl7:interpretationCode/@code=('POS','NEG','IND')  
  Message Observations with code <value-of select="$oc"/> shall have a interpretationCode element that shall be valued with POS','NEG' or 'IND'.