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

Commit

Permalink
Updates to Consol2
Browse files Browse the repository at this point in the history
Added validation tracking
  • Loading branch information
Sean Muir committed Apr 24, 2020
1 parent 91750c4 commit 697fba9
Show file tree
Hide file tree
Showing 976 changed files with 17,065 additions and 5,593 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,10 @@
*/
package org.openhealthtools.mdht.uml.cda.consol;

import java.lang.Iterable;

import java.util.Map;

import org.eclipse.emf.common.util.DiagnosticChain;

import org.eclipse.emf.ecore.EObject;

import org.eclipse.mdht.emf.runtime.util.Initializer;

/**
Expand All @@ -31,7 +27,7 @@ public interface AdmissionDiagnosisSection2 extends HospitalAdmissionDiagnosisSe
* @param diagnostics The chain of diagnostics to which problems are to be appended.
* @param context The cache of context-specific information.
* <!-- end-model-doc -->
* @model annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.templateId->exists(id : datatypes::II | id.root = \'2.16.840.1.113883.10.20.22.2.43\' and id.extension.oclIsUndefined())'"
* @model annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.templateId-&gt;exists(id : datatypes::II | id.root = \'2.16.840.1.113883.10.20.22.2.43\' and id.extension.oclIsUndefined())'"
* @generated
*/
boolean validateAdmissionDiagnosisSection2TemplateId(DiagnosticChain diagnostics, Map<Object, Object> context);
Expand All @@ -43,7 +39,7 @@ public interface AdmissionDiagnosisSection2 extends HospitalAdmissionDiagnosisSe
* @param diagnostics The chain of diagnostics to which problems are to be appended.
* @param context The cache of context-specific information.
* <!-- end-model-doc -->
* @model annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.code->excluding(null)->select(isNullFlavorUndefined())->reject( ( isNullFlavorUndefined() implies ((translation->isEmpty() or translation->exists(element | element.isNullFlavorUndefined())) implies (translation->size() = 1 and translation->forAll(element | not element.oclIsUndefined() and element.oclIsKindOf(datatypes::CD) and \r\nlet value : datatypes::CD = element.oclAsType(datatypes::CD) in \r\nvalue.code = \'42347-5\' and value.codeSystem = \'2.16.840.1.113883.6.1\')) )))'"
* @model annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.code-&gt;excluding(null)-&gt;select(isNullFlavorUndefined())-&gt;reject( ( isNullFlavorUndefined() implies ((translation-&gt;isEmpty() or translation-&gt;exists(element | element.isNullFlavorUndefined())) implies (translation-&gt;size() = 1 and translation-&gt;forAll(element | not element.oclIsUndefined() and element.oclIsKindOf(datatypes::CD) and \r\nlet value : datatypes::CD = element.oclAsType(datatypes::CD) in \r\nvalue.code = \'42347-5\' and value.codeSystem = \'2.16.840.1.113883.6.1\')) )))'"
* @generated
*/
boolean validateAdmissionDiagnosisSection2CETranslation(DiagnosticChain diagnostics, Map<Object, Object> context);
Expand All @@ -55,7 +51,7 @@ public interface AdmissionDiagnosisSection2 extends HospitalAdmissionDiagnosisSe
* @param diagnostics The chain of diagnostics to which problems are to be appended.
* @param context The cache of context-specific information.
* <!-- end-model-doc -->
* @model annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.code->excluding(null)->select(isNullFlavorUndefined())->reject( ( isNullFlavorUndefined() implies ((translation->isEmpty() or translation->exists(element | element.isNullFlavorUndefined())) implies (translation->size() = 1) )))'"
* @model annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.code-&gt;excluding(null)-&gt;select(isNullFlavorUndefined())-&gt;reject( ( isNullFlavorUndefined() implies ((translation-&gt;isEmpty() or translation-&gt;exists(element | element.isNullFlavorUndefined())) implies (translation-&gt;size() = 1) )))'"
* @generated
*/
boolean validateAdmissionDiagnosisSection2CETranslationP(DiagnosticChain diagnostics, Map<Object, Object> context);
Expand All @@ -64,7 +60,7 @@ public interface AdmissionDiagnosisSection2 extends HospitalAdmissionDiagnosisSe
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model kind="operation" required="true" ordered="false"
* annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getActs()->select(act : cda::Act | not act.oclIsUndefined() and act.oclIsKindOf(consol::HospitalAdmissionDiagnosis2))->asSequence()->any(true).oclAsType(consol::HospitalAdmissionDiagnosis2)'"
* annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getActs()-&gt;select(act : cda::Act | not act.oclIsUndefined() and act.oclIsKindOf(consol::HospitalAdmissionDiagnosis2))-&gt;asSequence()-&gt;any(true).oclAsType(consol::HospitalAdmissionDiagnosis2)'"
* @generated
*/
HospitalAdmissionDiagnosis2 getConsolHospitalAdmissionDiagnosis2();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,12 @@
*/
package org.openhealthtools.mdht.uml.cda.consol;

import java.lang.Iterable;

import java.util.Map;

import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EObject;

import org.eclipse.mdht.emf.runtime.util.Initializer;

import org.eclipse.mdht.uml.cda.Act;

/**
Expand All @@ -33,7 +28,7 @@ public interface AdmissionMedication extends Act {
* @param diagnostics The chain of diagnostics to which problems are to be appended.
* @param context The cache of context-specific information.
* <!-- end-model-doc -->
* @model annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.templateId->exists(id : datatypes::II | id.root = \'2.16.840.1.113883.10.20.22.4.36\')'"
* @model annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.templateId-&gt;exists(id : datatypes::II | id.root = \'2.16.840.1.113883.10.20.22.4.36\')'"
* @generated
*/
boolean validateAdmissionMedicationTemplateId(DiagnosticChain diagnostics, Map<Object, Object> context);
Expand Down Expand Up @@ -93,7 +88,7 @@ public interface AdmissionMedication extends Act {
* @param diagnostics The chain of diagnostics to which problems are to be appended.
* @param context The cache of context-specific information.
* <!-- end-model-doc -->
* @model annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.entryRelationship->exists(entryRelationship : cda::EntryRelationship | not entryRelationship.substanceAdministration.oclIsUndefined() and entryRelationship.substanceAdministration.oclIsKindOf(consol::MedicationActivity) and entryRelationship.typeCode = vocab::x_ActRelationshipEntryRelationship::SUBJ)'"
* @model annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.entryRelationship-&gt;exists(entryRelationship : cda::EntryRelationship | not entryRelationship.substanceAdministration.oclIsUndefined() and entryRelationship.substanceAdministration.oclIsKindOf(consol::MedicationActivity) and entryRelationship.typeCode = vocab::x_ActRelationshipEntryRelationship::SUBJ)'"
* @generated
*/
boolean validateAdmissionMedicationMedicationActivity(DiagnosticChain diagnostics, Map<Object, Object> context);
Expand All @@ -102,7 +97,7 @@ public interface AdmissionMedication extends Act {
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model kind="operation" required="true" ordered="false"
* annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getSubstanceAdministrations()->select(substanceAdministration : cda::SubstanceAdministration | not substanceAdministration.oclIsUndefined() and substanceAdministration.oclIsKindOf(consol::MedicationActivity)).oclAsType(consol::MedicationActivity)'"
* annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getSubstanceAdministrations()-&gt;select(substanceAdministration : cda::SubstanceAdministration | not substanceAdministration.oclIsUndefined() and substanceAdministration.oclIsKindOf(consol::MedicationActivity)).oclAsType(consol::MedicationActivity)'"
* @generated
*/
EList<MedicationActivity> getMedicationActivities();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@
*/
package org.openhealthtools.mdht.uml.cda.consol;

import java.lang.Iterable;

import java.util.Map;

import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EObject;

import org.eclipse.mdht.emf.runtime.util.Initializer;

/**
Expand All @@ -30,7 +27,7 @@ public interface AdmissionMedication2 extends AdmissionMedication {
* @param diagnostics The chain of diagnostics to which problems are to be appended.
* @param context The cache of context-specific information.
* <!-- end-model-doc -->
* @model annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.templateId->exists(id : datatypes::II | id.root = \'2.16.840.1.113883.10.20.22.4.36\' and id.extension.oclIsUndefined())'"
* @model annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.templateId-&gt;exists(id : datatypes::II | id.root = \'2.16.840.1.113883.10.20.22.4.36\' and id.extension.oclIsUndefined())'"
* @generated
*/
boolean validateAdmissionMedication2TemplateId(DiagnosticChain diagnostics, Map<Object, Object> context);
Expand All @@ -39,7 +36,7 @@ public interface AdmissionMedication2 extends AdmissionMedication {
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model kind="operation" required="true" ordered="false"
* annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getSubstanceAdministrations()->select(substanceAdministration : cda::SubstanceAdministration | not substanceAdministration.oclIsUndefined() and substanceAdministration.oclIsKindOf(consol::MedicationActivity2)).oclAsType(consol::MedicationActivity2)'"
* annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getSubstanceAdministrations()-&gt;select(substanceAdministration : cda::SubstanceAdministration | not substanceAdministration.oclIsUndefined() and substanceAdministration.oclIsKindOf(consol::MedicationActivity2)).oclAsType(consol::MedicationActivity2)'"
* @generated
*/
EList<MedicationActivity2> getConsolMedicationActivity2s();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
*/
package org.openhealthtools.mdht.uml.cda.consol;

import java.lang.Iterable;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EObject;

import org.eclipse.mdht.emf.runtime.util.Initializer;

/**
Expand All @@ -26,7 +22,7 @@ public interface AdmissionMedicationsSectionEntriesOptional2
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @model kind="operation" required="true" ordered="false"
* annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getActs()->select(act : cda::Act | not act.oclIsUndefined() and act.oclIsKindOf(consol::AdmissionMedication2)).oclAsType(consol::AdmissionMedication2)'"
* annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.getActs()-&gt;select(act : cda::Act | not act.oclIsUndefined() and act.oclIsKindOf(consol::AdmissionMedication2)).oclAsType(consol::AdmissionMedication2)'"
* @generated
*/
EList<AdmissionMedication2> getConsolAdmissionMedication2s();
Expand Down
Loading

0 comments on commit 697fba9

Please sign in to comment.