Skip to content
This repository was archived by the owner on Jan 5, 2025. It is now read-only.

Commit f4387c7

Browse files
author
drbgfc
committedJun 19, 2018
Fix RT.../Guardian/code terminology error firing when no code
-recordTarget/PatientRole/Patient/Guardian/code: The terminology portion of the error CONF:1198-5326 should only fire if the code exists but is firing without a code. The terminology is now enforced as an error only if the code exists and is invalid. The property portion is a SHOULD and is and was enforced as a warning correctly.
1 parent c84e844 commit f4387c7

File tree

11 files changed

+13319
-13338
lines changed

11 files changed

+13319
-13338
lines changed
 

‎generated/org.openhealthtools.mdht.uml.cda.consol2/model/consol.ecore

+8-14
Large diffs are not rendered by default.

‎generated/org.openhealthtools.mdht.uml.cda.consol2/model/consol.genmodel

+3-3
Original file line numberDiff line numberDiff line change
@@ -13389,9 +13389,9 @@
1338913389
<genParameters xsi:type="genmodel:GenParameter" ecoreParameter="consol.ecore#//USRealmHeader2/USRealmHeader2TemplateId/diagnostics"/>
1339013390
<genParameters xsi:type="genmodel:GenParameter" ecoreParameter="consol.ecore#//USRealmHeader2/USRealmHeader2TemplateId/context"/>
1339113391
</genOperations>
13392-
<genOperations xsi:type="genmodel:GenOperation" ecoreOperation="consol.ecore#//USRealmHeader2/GeneralHeaderConstraintsRecordTargetPatientRolePatientGuardianCodeP">
13393-
<genParameters xsi:type="genmodel:GenParameter" ecoreParameter="consol.ecore#//USRealmHeader2/GeneralHeaderConstraintsRecordTargetPatientRolePatientGuardianCodeP/diagnostics"/>
13394-
<genParameters xsi:type="genmodel:GenParameter" ecoreParameter="consol.ecore#//USRealmHeader2/GeneralHeaderConstraintsRecordTargetPatientRolePatientGuardianCodeP/context"/>
13392+
<genOperations xsi:type="genmodel:GenOperation" ecoreOperation="consol.ecore#//USRealmHeader2/USRealmHeader2RecordTargetPatientRolePatientGuardianCodeTerminology">
13393+
<genParameters xsi:type="genmodel:GenParameter" ecoreParameter="consol.ecore#//USRealmHeader2/USRealmHeader2RecordTargetPatientRolePatientGuardianCodeTerminology/diagnostics"/>
13394+
<genParameters xsi:type="genmodel:GenParameter" ecoreParameter="consol.ecore#//USRealmHeader2/USRealmHeader2RecordTargetPatientRolePatientGuardianCodeTerminology/context"/>
1339513395
</genOperations>
1339613396
<genOperations xsi:type="genmodel:GenOperation" ecoreOperation="consol.ecore#//USRealmHeader2/USRealmHeader2RecordTargetPatientRolePatientTSBirthTimePreciseToMinute">
1339713397
<genParameters xsi:type="genmodel:GenParameter" ecoreParameter="consol.ecore#//USRealmHeader2/USRealmHeader2RecordTargetPatientRolePatientTSBirthTimePreciseToMinute/diagnostics"/>

‎generated/org.openhealthtools.mdht.uml.cda.consol2/model/consol_Ecore.uml

+13,223-13,223
Large diffs are not rendered by default.

‎generated/org.openhealthtools.mdht.uml.cda.consol2/plugin.properties

+5-2
Original file line numberDiff line numberDiff line change
@@ -2619,6 +2619,7 @@ HospitalDischargeStudiesSummarySectionHospitalDischargeStudiesSummarySectionCode
26192619
HospitalDischargeStudiesSummarySectionHospitalDischargeStudiesSummarySectionTemplateId = SHALL contain exactly one [1..1] templateId ( CONF:10398 ) such that it SHALL contain exactly one [1..1] @root="2.16.840.1.113883.10.20.22.2.16"
26202620
HospitalDischargeStudiesSummarySectionHospitalDischargeStudiesSummarySectionText = Consol Hospital Discharge Studies Summary Section SHALL contain exactly one [1..1] text (CONF:7913)
26212621
HospitalDischargeStudiesSummarySectionHospitalDischargeStudiesSummarySectionTitle = Consol Hospital Discharge Studies Summary Section SHALL contain exactly one [1..1] title (CONF:7912)
2622+
If = the allergy/intolerance is known to be resolved, but the date of resolution is not known, then the high element SHALL be present, and the nullFlavor attribute SHALL be set to 'UNK'.
26222623
ImmunizationActivity2CEImmunizationActivity2CETranslation = Consol CE SHOULD contain zero or more [0..*] translation, which SHALL be selected from ValueSet Medication Route 2.16.840.1.113762.1.4.1099.12 DYNAMIC (CONF:1198-32960, DSTU:1276)
26232624
ImmunizationActivity2CEImmunizationActivity2CETranslationP = Consol CE SHOULD contain zero or more [0..*] translation, which SHALL be selected from ValueSet Medication Route 2.16.840.1.113762.1.4.1099.12 DYNAMIC (CONF:1198-32960, DSTU:1276)
26242625
ImmunizationActivity2ConsumableImmunizationActivityConsumableImmunizationMedicationInformation = Consol Consumable SHALL contain exactly one [1..1] manufacturedProduct, where its type is Immunization Medication Information2 (CONF:1198-15546)
@@ -5970,7 +5971,7 @@ USRealmHeader2GeneralHeaderConstraintsRecordTargetPatientRolePatientBirthplacePl
59705971
USRealmHeader2GeneralHeaderConstraintsRecordTargetPatientRolePatientEthnicGroupCode = Consol US Realm Header (V3) SHALL contain at least one [1..*] recordTarget, where its type is Record Target (CONF:1198-5266) each SHALL contain exactly one [1..1] patientRole, where (CONF:1198-5267) patient Role SHALL contain exactly one [1..1] patient, where (CONF:1198-5283) patient SHALL contain exactly one [1..1] ethnicGroupCode, which SHALL be selected from ValueSet EthnicityGroup 2.16.840.1.114222.4.11.837 DYNAMIC (CONF:1198-5323)
59715972
USRealmHeader2GeneralHeaderConstraintsRecordTargetPatientRolePatientEthnicGroupCodeP = Consol US Realm Header (V3) SHALL contain at least one [1..*] recordTarget, where its type is Record Target (CONF:1198-5266) each SHALL contain exactly one [1..1] patientRole, where (CONF:1198-5267) patient Role SHALL contain exactly one [1..1] patient, where (CONF:1198-5283) patient SHALL contain exactly one [1..1] ethnicGroupCode, which SHALL be selected from ValueSet EthnicityGroup 2.16.840.1.114222.4.11.837 DYNAMIC (CONF:1198-5323)
59725973
USRealmHeader2GeneralHeaderConstraintsRecordTargetPatientRolePatientGuardian = Consol US Realm Header (V3) SHALL contain at least one [1..*] recordTarget, where its type is Record Target (CONF:1198-5266) each SHALL contain exactly one [1..1] patientRole, where (CONF:1198-5267) patient Role SHALL contain exactly one [1..1] patient, where (CONF:1198-5283) patient MAY contain zero or more [0..*] guardian, where its type is Guardian (CONF:1198-5325)
5973-
USRealmHeader2GeneralHeaderConstraintsRecordTargetPatientRolePatientGuardianCode = Consol US Realm Header (V3) SHALL contain at least one [1..*] recordTarget, where its type is Record Target (CONF:1198-5266) each SHALL contain exactly one [1..1] patientRole, where (CONF:1198-5267) patient Role SHALL contain exactly one [1..1] patient, where (CONF:1198-5283) each MAY contain zero or more [0..*] guardian, where (CONF:1198-5325) guardian SHOULD contain zero or one [0..1] code, which SHALL be selected from ValueSet Personal And Legal Relationship Role Type 2.16.840.1.113883.11.20.12.1 DYNAMIC (CONF:1198-5326)
5974+
USRealmHeader2GeneralHeaderConstraintsRecordTargetPatientRolePatientGuardianCode = Consol US Realm Header (V3) SHALL contain at least one [1..*] recordTarget, where its type is Record Target (CONF:1198-5266) each SHALL contain exactly one [1..1] patientRole, where (CONF:1198-5267) patient Role SHALL contain exactly one [1..1] patient, where (CONF:1198-5283) each MAY contain zero or more [0..*] guardian, where (CONF:1198-5325) guardian SHOULD contain zero or one [0..1] code (CONF:1198-5326)
59745975
USRealmHeader2GeneralHeaderConstraintsRecordTargetPatientRolePatientGuardianCodeFromPersonalRelationshipOrResponsibleParty = Consol US Realm Header (V3) SHALL contain at least one [1..*] recordTarget, where its type is Record Target (CONF:1198-5266) each SHALL contain exactly one [1..1] patientRole, where (CONF:1198-5267) patient Role SHALL contain exactly one [1..1] patient, where (CONF:1198-5283) each MAY contain zero or more [0..*] guardian, where (CONF:1198-5325) guardian MAY satisfy: This constraint is being overridden as it has been removed in v2 and should never fire
59755976
USRealmHeader2GeneralHeaderConstraintsRecordTargetPatientRolePatientGuardianCodeP = Consol US Realm Header (V3) SHALL contain at least one [1..*] recordTarget, where its type is Record Target (CONF:1198-5266) each SHALL contain exactly one [1..1] patientRole, where (CONF:1198-5267) patient Role SHALL contain exactly one [1..1] patient, where (CONF:1198-5283) each MAY contain zero or more [0..*] guardian, where (CONF:1198-5325) guardian SHOULD contain zero or one [0..1] code, which SHALL be selected from ValueSet Personal And Legal Relationship Role Type 2.16.840.1.113883.11.20.12.1 DYNAMIC (CONF:1198-5326)
59765977
USRealmHeader2GeneralHeaderConstraintsRecordTargetPatientRolePatientGuardianTELUse = Consol US Realm Header (V3) SHALL contain at least one [1..*] recordTarget, where its type is Record Target (CONF:1198-5266) each SHALL contain exactly one [1..1] patientRole, where (CONF:1198-5267) patient Role SHALL contain exactly one [1..1] patient, where (CONF:1198-5283) each MAY contain zero or more [0..*] guardian, where (CONF:1198-5325) each SHOULD contain zero or more [0..*] telecom (CONF:1198-5382) telecom SHOULD contain zero or one [0..1] @use (CONF:7993, R2.1=CONF:1198-7993)
@@ -6023,11 +6024,12 @@ USRealmHeader2RecordTargetPatientRolePatientGeneralHeaderConstraintsRecordTarget
60236024
USRealmHeader2RecordTargetPatientRolePatientGeneralHeaderConstraintsRecordTargetPatientRolePatientTSBirthTimePreciseToDay = Consol Patient SHALL contain exactly one [1..1] birthTime (CONF:1198-5298) birthTime SHOULD satisfy: precise to day (CONF:1198-5300)
60246025
USRealmHeader2RecordTargetPatientRolePatientGeneralHeaderConstraintsRecordTargetPatientRolePatientTSBirthTimePreciseToYear = Consol Patient SHALL contain exactly one [1..1] birthTime (CONF:1198-5298) birthTime SHALL satisfy: precise to year (CONF:1198-5299)
60256026
USRealmHeader2RecordTargetPatientRolePatientGeneralHeaderConstraintsRecordTargetPatientRolePatientTSValue = Consol Patient SHALL contain exactly one [1..1] birthTime (CONF:1198-5298) birthTime contain exactly one [1..1] value
6026-
USRealmHeader2RecordTargetPatientRolePatientGuardianGeneralHeaderConstraintsRecordTargetPatientRolePatientGuardianCode = Consol Guardian SHOULD contain zero or one [0..1] code, which SHALL be selected from ValueSet Personal And Legal Relationship Role Type 2.16.840.1.113883.11.20.12.1 DYNAMIC (CONF:1198-5326)
6027+
USRealmHeader2RecordTargetPatientRolePatientGuardianGeneralHeaderConstraintsRecordTargetPatientRolePatientGuardianCode = Consol Guardian SHOULD contain zero or one [0..1] code (CONF:1198-5326)
60276028
USRealmHeader2RecordTargetPatientRolePatientGuardianGeneralHeaderConstraintsRecordTargetPatientRolePatientGuardianCodeFromPersonalRelationshipOrResponsibleParty = Consol Guardian MAY satisfy: This constraint is being overridden as it has been removed in v2 and should never fire
60286029
USRealmHeader2RecordTargetPatientRolePatientGuardianGeneralHeaderConstraintsRecordTargetPatientRolePatientGuardianCodeP = Consol Guardian SHOULD contain zero or one [0..1] code, which SHALL be selected from ValueSet Personal And Legal Relationship Role Type 2.16.840.1.113883.11.20.12.1 DYNAMIC (CONF:1198-5326)
60296030
USRealmHeader2RecordTargetPatientRolePatientGuardianGeneralHeaderConstraintsRecordTargetPatientRolePatientGuardianTELUse = Consol Guardian SHOULD contain zero or more [0..*] telecom (CONF:1198-5382) telecom SHOULD contain zero or one [0..1] @use (CONF:7993, R2.1=CONF:1198-7993)
60306031
USRealmHeader2RecordTargetPatientRolePatientGuardianGeneralHeaderConstraintsRecordTargetPatientRolePatientGuardianTelecom = Consol Guardian SHOULD contain zero or more [0..*] telecom (CONF:1198-5382)
6032+
USRealmHeader2RecordTargetPatientRolePatientGuardianUSRealmHeader2RecordTargetPatientRolePatientGuardianCodeTerminology = Consol Guardian code, if present, SHALL be selected from ValueSet Personal And Legal Relationship Role Type 2.16.840.1.113883.11.20.12.1 DYNAMIC (CONF:1198-5326)
60316033
USRealmHeader2RecordTargetPatientRolePatientLanguageCommunicationGeneralHeaderConstraintsRecordTargetPatientRolePatientLanguageCommunicationLanguageCode = Consol Language Communication SHALL contain exactly one [1..1] languageCode, which SHALL be selected from ValueSet Language 2.16.840.1.113883.1.11.11526 DYNAMIC (CONF:1198-5407)
60326034
USRealmHeader2RecordTargetPatientRolePatientLanguageCommunicationGeneralHeaderConstraintsRecordTargetPatientRolePatientLanguageCommunicationLanguageCodeP = Consol Language Communication SHALL contain exactly one [1..1] languageCode, which SHALL be selected from ValueSet Language 2.16.840.1.113883.1.11.11526 DYNAMIC (CONF:1198-5407)
60336035
USRealmHeader2RecordTargetPatientRolePatientLanguageCommunicationGeneralHeaderConstraintsRecordTargetPatientRolePatientLanguageCommunicationPreferenceInd = Consol Language Communication SHOULD contain zero or one [0..1] preferenceInd (CONF:1198-5414)
@@ -6056,6 +6058,7 @@ USRealmHeader2USRealmHeader2InformantAssignedEntityGeneralHeaderConstraintsUSRea
60566058
USRealmHeader2USRealmHeader2InformantAssignedEntityGeneralHeaderConstraintsUSRealmAddressUseP = Consol US Realm Header (V3) MAY contain zero or more [0..*] informant, where its type is Informant (CONF:1198-8001, CONF:1198-31355) each contain zero or one [0..1] assignedEntity, where each SHALL contain at least one [1..*] addr (CONF:1198-8220) addr SHOULD contain zero or one [0..1] @use, which SHALL be selected from ValueSet PostalAddressUse 2.16.840.1.113883.1.11.10637 STATIC (CONF:7290, R2.1=CONF:81-7290)
60576059
USRealmHeader2USRealmHeader2InformationRecipientIntendedRecipientId = Consol US Realm Header (V3) MAY contain zero or more [0..*] informationRecipient, where its type is Information Recipient (CONF:1198-5565) each SHALL contain exactly one [1..1] intendedRecipient, where (CONF:1198-5566) intendedRecipient MAY contain zero or more [0..*] id (CONF:1198-32399)
60586060
USRealmHeader2USRealmHeader2LegalAuthenticatorSDTCSignatureText = Consol US Realm Header (V3) SHOULD contain zero or one [0..1] legalAuthenticator, where its type is Legal Authenticator (CONF:1198-5579) legalAuthenticator MAY contain zero or one [0..1] sDTCSignatureText (CONF:1198-30810)
6061+
USRealmHeader2USRealmHeader2RecordTargetPatientRolePatientGuardianCodeTerminology = Consol US Realm Header (V3) SHALL contain at least one [1..*] recordTarget, where its type is Record Target (CONF:1198-5266) each SHALL contain exactly one [1..1] patientRole, where (CONF:1198-5267) patient Role SHALL contain exactly one [1..1] patient, where (CONF:1198-5283) each MAY contain zero or more [0..*] guardian, where (CONF:1198-5325) guardian code, if present, SHALL be selected from ValueSet Personal And Legal Relationship Role Type 2.16.840.1.113883.11.20.12.1 DYNAMIC (CONF:1198-5326)
60596062
USRealmHeader2USRealmHeader2RecordTargetPatientRolePatientSDTCEthnicGroupCode = Consol US Realm Header (V3) SHALL contain at least one [1..*] recordTarget, where its type is Record Target (CONF:1198-5266) each SHALL contain exactly one [1..1] patientRole, where (CONF:1198-5267) patient Role SHALL contain exactly one [1..1] patient, where (CONF:1198-5283) patient MAY contain zero or more [0..*] sDTCEthnicGroupCode (ethnicGroupCode) (1198-32901), which SHALL be selected from ValueSet Detailed Ethnicity 2.16.840.1.114222.4.11.877 STATIC
60606063
USRealmHeader2USRealmHeader2RecordTargetPatientRolePatientSDTCEthnicGroupCodeP = Consol US Realm Header (V3) SHALL contain at least one [1..*] recordTarget, where its type is Record Target (CONF:1198-5266) each SHALL contain exactly one [1..1] patientRole, where (CONF:1198-5267) patient Role SHALL contain exactly one [1..1] patient, where (CONF:1198-5283) patient MAY contain zero or more [0..*] sDTCEthnicGroupCode (ethnicGroupCode) (1198-32901), which SHALL be selected from ValueSet Detailed Ethnicity 2.16.840.1.114222.4.11.877 STATIC
60616064
USRealmHeader2USRealmHeader2RecordTargetPatientRolePatientTSBirthTimePreciseToMinute = Consol US Realm Header (V3) SHALL contain at least one [1..*] recordTarget, where its type is Record Target (CONF:1198-5266) each SHALL contain exactly one [1..1] patientRole, where (CONF:1198-5267) patient Role SHALL contain exactly one [1..1] patient, where (CONF:1198-5283) each SHALL contain exactly one [1..1] birthTime (CONF:1198-5298) birthTime MAY satisfy: precise to the minute (CONF:1198-32418)

0 commit comments

Comments
 (0)