Uploaded image for project: 'CDA Specification Feedback'
  1. CDA Specification Feedback
  2. CDA-20092

Goal Observation templateId schematron prohibits new versions

    XMLWordPrintableJSON

Details

    • Icon: Technical Correction Technical Correction
    • Resolution: Persuasive
    • Icon: Medium Medium
    • C-CDA Templates Clinical Notes (CDA)
    • 2.1.0.7 [deprecated]
    • Structured Documents
    • Schematron Validation Files [deprecated]
    • Hide

      In alignment to resolution to CDA-813, will add the following additional constraint

      b. SHALL not contain [0..0] @extension.

       

      Immediately following the below existing constraints:

      SHALL contain exactly one [1..1] templateId (CONF:1098-8583) such that it

      • SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.4.121" (CONF:1098-10512).
      Show
      In alignment to resolution to CDA-813 , will add the following additional constraint b. SHALL not contain [0..0] @extension.   Immediately following the below existing constraints: SHALL  contain exactly one [1..1]   templateId   (CONF:1098-8583)  such that it SHALL  contain exactly one [1..1]   @root = "2.16.840.1.113883.10.20.22.4.121"   (CONF:1098-10512) .
    • Correction

    Description

      The schematron enforcing the templateId for Goal Observation in C-CDA 2.1 prohibits additional newer versions of that templateId (where an @extension is included with a date).  This became a problem when attempting to version the Goal Observation, as including both prior and new templateIds as follows causes an error:

      <templateId root="2.16.840.1.113883.10.20.22.4.121"/>
      <templateId root="2.16.840.1.113883.10.20.22.4.121" extension="2022-06-01"/>

       

      Here is the applicable schematron from C-CDA 2.1:

      <sch:assert id="a-1098-30719-c" test="((count(@nullFlavor)=1) or (count(cda:entry[count(cda:observation[cda:templateId[@root='2.16.840.1.113883.10.20.22.4.121']])=1]) > 0)) and (not((count(@nullFlavor)=1) and (count(cda:entry) > 0)))">SHALL contain at least one [1..*] entry (CONF:1098-30719) such that it SHALL contain exactly one [1..1] Goal Observation (identifier: urn:oid:2.16.840.1.113883.10.20.22.4.121) (CONF:1098-30720).</sch:assert>

       

      For reference, here is the equivalent schematron validating Problem Observation:

      <sch:assert id="a-1198-14926" test="count(cda:templateId[@root='2.16.840.1.113883.10.20.22.4.4'][@extension='2015-08-01'])=1">SHALL contain exactly one [1..1] templateId (CONF:1198-14926) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.4.4" (CONF:1198-14927). SHALL contain exactly one [1..1] @extension="2015-08-01" (CONF:1198-32508).</sch:assert>

       

      Recommend that we update the schematron for Goal Observation to reflect how we enforce templateIds elsewhere.

      Attachments

        Activity

          People

            Russell Ott Russell Ott
            Russell Ott Russell Ott
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: