Ignore:
Timestamp:
Aug 17, 2010, 4:47:04 PM (14 years ago)
Author:
George Lilly
Message:

current version of QRDA schematron

File:
1 edited

Legend:

Unmodified
Added
Removed
  • qrda/schematron/templates/2.16.840.1.113883.10.20.12.ent

    r909 r914  
    220220       Error: CONF-QRDA1-54: A QRDA Category I report MAY contain a ClinicalDocument/author/assignedAuthor/representedOrganization/name element.
    221221  </assert>
     222 <!-- awaiting more information from IFMC about what the "informant" is as the documentation is not clear if it is someone associated with the patient, like a family member or the organization that is preparing the document or what.   It certainly lseems to be the latter because a lot of the required elements don't make sense otherwise and would need to be @nullFlavor I would think -->
     223 
    222224  <assert test='count(cda:informant) = 1'>
    223        Error: CONF-QRDA-I-10: A QRDA Category I report SHALL contain exactly one
    224        ClinicalDocument/informant, which represents the reporting facility.
    225        CONF-QRDA-I-11: An organization source of information SHALL be represented with
    226        informant.
    227     </assert>
    228     <assert test='cda:custodian/cda:assignedCustodian/cda:representedCustodianOrganization/cda:id/@root or
    229                   cda:custodian/cda:assignedCustodian/cda:representedCustodianOrganization/cda:id[@nullFlavor="MSK"]'>
    230        Error: CONF-QRDA-I-12: A QRDA Category I report SHALL contain exactly one
     225       Error: CONF-QRDA1-55: A QRDA Category I report SHALL contain exactly one
     226       ClinicalDocument/informant which may represents the reporting facility.
     227  </assert>
     228   <assert test='count(cda:informant/cda:assignedEntity) = 1'>
     229       Error: CONF-QRDA1-56: A QRDA Category I report SHALL contain exactly one
     230       ClinicalDocument/informant/assignedEntity
     231   </assert>
     232      <assert test='cda:informant/cda:assignedEntity/cda:id'>
     233       Error: CONF-QRDA1-57 and 58 The assignedEntity id element SHALL be present.  If there is not valid value informant/assignedEntity/id then @nullFlavor SHALL be NA (Not applicable) (i.e., id nullFlavor="NA")
     234   </assert>
     235   <assert test='cda:informant/cda:assignedEntity/cda:representedOrganization'>
     236       Error: CONF-QRDA1-59 The /informant/assignedEntity/representedOraganization element SHALL be present. 
     237   </assert>
     238   <assert test='cda:informant/cda:assignedEntity/cda:representedOrganization/cda:id'>
     239       Error: CONF-QRDA1-60 The /informant/assignedEntity/representedOraganization/id element SHALL be present. 
     240   </assert>
     241   <assert test='cda:informant/cda:assignedEntity/cda:representedOrganization/cda:name'>
     242       Warning: CONF-QRDA1-61 The /informant/assignedEntity/representedOraganization/name element SHOULD be present. 
     243   </assert>
     244   <assert test='not(cda:custodian/cda:assignedEntity/cda:representedOrganization/cda:name) or cda:custodian/cda:assignedCustodian/cda:representedCustodianOrganization/cda:id/@root'>
     245       Error: CONF-QRDA1-62: A QRDA Category I report SHALL contain exactly one
    231246       custodian/assignedCustodian/representedCustodianOrganization/
    232        id element.
    233        CONF-QRDA-I-13: The value of custodian/assignedCustodian/
     247       id element.  CONF-QRDA1-63: The value of custodian/assignedCustodian/
    234248       representedCustodianOrganization/id element @root SHALL be the id
    235249       root of the custodian organization.
    236250    </assert>
    237251    <assert test='not(cda:legalAuthenticator) or count(cda:legalAuthenticator/cda:time) = 1'>
    238        Error: CONF-QRDA-I-15: If present, a QRDA Category I report legalAuthenticator SHALL
    239        contain exactly one ClinicalDocument/legalAuthenticator/time element.
     252       Error: CONF-QRDA1-65 and 66: A QRDA Category I report SHOULD contain a legal authenticatior element and, if present, it  SHALL contain exactly one ClinicalDocument/legalAuthenticator/time element.
     253    </assert>
     254    <assert test='not(cda:legalAuthenticator) or string-length(cda:legalAuthenticator/cda:time/@value) &gt;= 8'>
     255       Error: CONF-QRDA1-67 If there is a cliniacalDocument/legalAuthenticator/time element,time @value attribute value SHALL be at least precise to the day YYYYMMDD.
    240256    </assert>
    241257    <assert test='not(cda:legalAuthenticator) or count(cda:legalAuthenticator/cda:signatureCode) = 1'>
    242        Error: CONF-QRDA-I-16: If present, a QRDA Category I report legalAuthenticator SHALL
     258       Error: CONF-QRDA1-68: If present, a QRDA Category I report legalAuthenticator SHALL
    243259        contain exactly one signatureCode element.
    244260    </assert>
    245     <assert test='not(cda:legalAuthenticator) or
    246                   cda:legalAuthenticator/cda:signatureCode[@code="S"] or
    247                   cda:legalAuthenticator/cda:signatureCode[@nullFlavor="MSK"]'>
    248        Error: CONF-QRDA-I-17: The value of a QRDA ClinicalDocument/signatureCode/@code
     261    <assert test='not(cda:legalAuthenticator) or cda:legalAuthenticator/cda:signatureCode[@code="S"]'>
     262                  Error: CONF-QRDA1-69: The value of a QRDA ClinicalDocument/signatureCode/@code
    249263       SHALL be S.
    250264    </assert>
    251     <assert test='not(cda:legalAuthenticator) or
    252                   cda:legalAuthenticator/cda:assignedEntity'>
    253        Error: CONF-QRDA-I-18: If present, a QRDA Category I report legalAuthenticator SHALL
     265    <assert test='not(cda:legalAuthenticator) or cda:legalAuthenticator/cda:assignedEntity'>
     266    Error: CONF-QRDA1-70: If present, a QRDA Category I report legalAuthenticator SHALL
    254267       contain exactly one assignedEntity element that represents the legal
    255268       authenticator of the document.
    256269    </assert>
    257     <assert test='not(cda:legalAuthenticator) or
    258                   cda:legalAuthenticator/cda:assignedEntity/cda:id'>
    259        Error: CONF-QRDA-I-19: The ClinicalDocument/legalAuthenticator/assigned entity
     270    <assert test='not(cda:legalAuthenticator) or cda:legalAuthenticator/cda:assignedEntity/cda:id'>
     271       Error: CONF-QRDA1-71: If present,the ClinicalDocument/legalAuthenticator/assignedEntity
    260272       SHALL contain an id element.
    261273    </assert>
     274    <assert test='not(cda:legalAuthenticator) or cda:legalAuthenticator/cda:assignedEntity/cda:assignedPerson'>
     275       Warning: CONF-QRDA1-72: If the legalAuthenticatior element is present, the, ClinicalDocument/legalAuthenticator/assignedEntity/assignedPerson
     276       SHOULD be present contain and assignedPerson element.
     277    </assert>
     278    <assert test='not(cda:legalAuthenticator) or cda:legalAuthenticator/cda:assignedEntity/cda:assignedPerson/cda:name/cda:given'>
     279       Warning: CONF-QRDA1-73: If the legalAuthenticatior element is present, the ClinicalDocument/legalAuthenticator/assignedEntity/assignedPerson/name/given
     280       MAY be present.
     281    </assert>
     282    <assert test='not(cda:legalAuthenticator) or cda:legalAuthenticator/cda:assignedEntity/cda:assignedPerson/cda:name/cda:family'>
     283       Warning: CONF-QRDA1-74: If the legalAuthenticatior element is present, the ClinicalDocument/legalAuthenticator/assignedEntity/assignedPerson/name/family
     284       MAY be present.
     285    </assert>
     286    <assert test='not(cda:legalAuthenticator) or cda:legalAuthenticator/cda:assignedEntity/cda:representedOrganization'>
     287       Warning: CONF-QRDA1-75: If the legalAuthenticatior element is present, the ClinicalDocument/legalAuthenticator/assignedEntity/representedOrganization
     288       SHOULD be present.
     289    </assert>
     290    <assert test='not(cda:legalAuthenticator) or cda:legalAuthenticator/cda:assignedEntity/cda:representedOrganization/cda:id'>
     291       Warning: CONF-QRDA1-76: If the legalAuthenticatior element is present, the ClinicalDocument/legalAuthenticator/assignedEntity/representedOrganization/id element
     292       SHALL be present.
     293    </assert>
     294    <assert test='not(cda:legalAuthenticator) or cda:legalAuthenticator/cda:assignedEntity/cda:representedOrganization/cda:name'>
     295       Warning: CONF-QRDA1-77: If the legalAuthenticatior element is present, the ClinicalDocument/legalAuthenticator/assignedEntity/representedOrganzation/name/
     296       SHOULD be present.
     297    </assert>
     298   
     299    <!--NEXT TO COME - participant and documentationOf -->
     300   
    262301    <assert test='cda:component/cda:structuredBody'>
    263302       Error: CONF-QRDA-I-20: A QRDA Category I report SHALL contain exactly one
Note: See TracChangeset for help on using the changeset viewer.