@@ -14283,12 +14283,13 @@
1428314283 </eClassifiers>
1428414284 <eClassifiers xsi:type="ecore:EClass" name="MedicationsSection" eSuperTypes="#//MedicationsSectionEntriesOptional">
1428514285 <eAnnotations source="http://www.openhealthtools.org/mdht/uml/cda/annotation">
14286- <details key="constraints.validation.error" value="MedicationsSectionEntriesOptionalTemplateId MedicationsSectionCode MedicationsSectionTitle MedicationsSectionText MedicationsSectionMedication"/>
14286+ <details key="constraints.validation.error" value="MedicationsSectionEntriesOptionalTemplateId MedicationsSectionCode MedicationsSectionCodeP MedicationsSectionTitle MedicationsSectionText MedicationsSectionMedication"/>
1428714287 <details key="templateId.root" value="2.16.840.1.113883.10.20.22.2.1.1"/>
1428814288 <details key="code.code" value="10160-0"/>
1428914289 <details key="code.codeSystem" value="2.16.840.1.113883.6.1"/>
1429014290 <details key="code.codeSystemName" value="LOINC"/>
1429114291 <details key="code.displayName" value="History of medication use"/>
14292+ <details key="constraints.validation.dependOn.MedicationsSectionCode" value="MedicationsSectionCodeP"/>
1429214293 </eAnnotations>
1429314294 <eAnnotations source="duplicates">
1429414295 <contents xsi:type="ecore:EOperation" name="MedicationsSectionEntriesOptionalTemplateId"
1431314314 </eParameters>
1431414315 </contents>
1431514316 </eAnnotations>
14317+ <eOperations name="MedicationsSectionCodeP" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
14318+ <eAnnotations source="http://www.eclipse.org/uml2/1.1.0/GenModel">
14319+ <details key="body" value="(self.code.oclIsUndefined() or self.code.isNullFlavorUndefined()) implies (not self.code.oclIsUndefined())"/>
14320+ </eAnnotations>
14321+ <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain">
14322+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
14323+ <details key="documentation" value="The chain of diagnostics to which problems are to be appended."/>
14324+ </eAnnotations>
14325+ </eParameters>
14326+ <eParameters name="context">
14327+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
14328+ <details key="documentation" value="The cache of context-specific information."/>
14329+ </eAnnotations>
14330+ <eGenericType eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap">
14331+ <eTypeArguments eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"/>
14332+ <eTypeArguments eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"/>
14333+ </eGenericType>
14334+ </eParameters>
14335+ </eOperations>
1431614336 <eOperations name="MedicationsSectionCode" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
1431714337 <eAnnotations source="http://www.eclipse.org/uml2/1.1.0/GenModel">
1431814338 <details key="body" value="(self.code.oclIsUndefined() or self.code.isNullFlavorUndefined()) implies (not self.code.oclIsUndefined() and self.code.oclIsKindOf(datatypes::CE) and 
let value : datatypes::CE = self.code.oclAsType(datatypes::CE) in 
value.code = '10160-0' and value.codeSystem = '2.16.840.1.113883.6.1')"/>
1439814418 </eClassifiers>
1439914419 <eClassifiers xsi:type="ecore:EClass" name="MedicationsSectionEntriesOptional" eSuperTypes="../../org.eclipse.mdht.uml.cda/model/cda.ecore#//Section">
1440014420 <eAnnotations source="http://www.openhealthtools.org/mdht/uml/cda/annotation">
14401- <details key="constraints.validation.error" value="MedicationsSectionEntriesOptionalTemplateId MedicationsSectionEntriesOptionalCode MedicationsSectionEntriesOptionalTitle MedicationsSectionEntriesOptionalText"/>
14421+ <details key="constraints.validation.error" value="MedicationsSectionEntriesOptionalTemplateId MedicationsSectionEntriesOptionalCode MedicationsSectionEntriesOptionalCodeP MedicationsSectionEntriesOptionalTitle MedicationsSectionEntriesOptionalText"/>
1440214422 <details key="templateId.root" value="2.16.840.1.113883.10.20.22.2.1"/>
1440314423 <details key="code.code" value="10160-0"/>
1440414424 <details key="code.codeSystem" value="2.16.840.1.113883.6.1"/>
1444414464 </eGenericType>
1444514465 </eParameters>
1444614466 </eOperations>
14467+ <eOperations name="MedicationsSectionEntriesOptionalCodeP" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
14468+ <eAnnotations source="http://www.eclipse.org/uml2/1.1.0/GenModel">
14469+ <details key="body" value="(self.code.oclIsUndefined() or self.code.isNullFlavorUndefined()) implies (not self.code.oclIsUndefined())"/>
14470+ </eAnnotations>
14471+ <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain">
14472+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
14473+ <details key="documentation" value="The chain of diagnostics to which problems are to be appended."/>
14474+ </eAnnotations>
14475+ </eParameters>
14476+ <eParameters name="context">
14477+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
14478+ <details key="documentation" value="The cache of context-specific information."/>
14479+ </eAnnotations>
14480+ <eGenericType eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap">
14481+ <eTypeArguments eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"/>
14482+ <eTypeArguments eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"/>
14483+ </eGenericType>
14484+ </eParameters>
14485+ </eOperations>
1444714486 <eOperations name="MedicationsSectionEntriesOptionalTitle" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
1444814487 <eAnnotations source="http://www.eclipse.org/uml2/1.1.0/GenModel">
1444914488 <details key="body" value="(self.title.oclIsUndefined() or self.title.isNullFlavorUndefined()) implies (not self.title.oclIsUndefined())"/>
8427384312 <eAnnotations source="http://www.eclipse.org/uml2/1.1.0/GenModel">
8427484313 <details key="body" value="(self.code.oclIsUndefined() or self.code.isNullFlavorUndefined()) implies (not self.code.oclIsUndefined())"/>
8427584314 </eAnnotations>
84276- <eAnnotations source="redefines" references="#//MedicationsSectionEntriesOptional2/MedicationsSectionEntriesOptionalCodeP"/>
84315+ <eAnnotations source="redefines" references="#//MedicationsSectionEntriesOptional/MedicationsSectionEntriesOptionalCodeP #// MedicationsSectionEntriesOptional2/%duplicates% /MedicationsSectionEntriesOptionalCodeP"/>
8427784316 <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain">
8427884317 <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
8427984318 <details key="documentation" value="The chain of diagnostics to which problems are to be appended."/>
8443084469 </eGenericType>
8443184470 </eParameters>
8443284471 </contents>
84472+ <contents xsi:type="ecore:EOperation" name="MedicationsSectionEntriesOptionalCodeP"
84473+ eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
84474+ <eAnnotations source="http://www.eclipse.org/uml2/1.1.0/GenModel">
84475+ <details key="body" value="(self.code.oclIsUndefined() or self.code.isNullFlavorUndefined()) implies (not self.code.oclIsUndefined())"/>
84476+ </eAnnotations>
84477+ <eAnnotations source="redefines" references="#//MedicationsSectionEntriesOptional/MedicationsSectionEntriesOptionalCodeP"/>
84478+ <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain">
84479+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
84480+ <details key="documentation" value="The chain of diagnostics to which problems are to be appended."/>
84481+ </eAnnotations>
84482+ </eParameters>
84483+ <eParameters name="context">
84484+ <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
84485+ <details key="documentation" value="The cache of context-specific information."/>
84486+ </eAnnotations>
84487+ <eGenericType eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap">
84488+ <eTypeArguments eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"/>
84489+ <eTypeArguments eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"/>
84490+ </eGenericType>
84491+ </eParameters>
84492+ </contents>
8443384493 <contents xsi:type="ecore:EOperation" name="MedicationsSectionEntriesOptionalCode"
8443484494 eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
8443584495 <eAnnotations source="http://www.eclipse.org/uml2/1.1.0/GenModel">
8449284552 </eGenericType>
8449384553 </eParameters>
8449484554 </eOperations>
84495- <eOperations name="MedicationsSectionEntriesOptionalCodeP" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean">
84496- <eAnnotations source="http://www.eclipse.org/uml2/1.1.0/GenModel">
84497- <details key="body" value="(self.code.oclIsUndefined() or self.code.isNullFlavorUndefined()) implies (not self.code.oclIsUndefined())"/>
84498- </eAnnotations>
84499- <eParameters name="diagnostics" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EDiagnosticChain">
84500- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
84501- <details key="documentation" value="The chain of diagnostics to which problems are to be appended."/>
84502- </eAnnotations>
84503- </eParameters>
84504- <eParameters name="context">
84505- <eAnnotations source="http://www.eclipse.org/emf/2002/GenModel">
84506- <details key="documentation" value="The cache of context-specific information."/>
84507- </eAnnotations>
84508- <eGenericType eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EMap">
84509- <eTypeArguments eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"/>
84510- <eTypeArguments eClassifier="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EJavaObject"/>
84511- </eGenericType>
84512- </eParameters>
84513- </eOperations>
8451484555 <eOperations name="getConsolMedicationActivity2s" ordered="false" lowerBound="1"
8451584556 upperBound="-1" eType="#//MedicationActivity2">
8451684557 <eAnnotations source="http://www.eclipse.org/uml2/1.1.0/GenModel">
0 commit comments