All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openhealthtools.mdht.uml.cda.consol.ExternalReference Maven / Gradle / Ivy

The newest version!
/*******************************************************************************
 * Copyright (c) 2011, 2012 Sean Muir and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Sean Muir (JKM Software) - initial API and implementation
 *******************************************************************************/
package org.openhealthtools.mdht.uml.cda.consol;

import java.util.Map;

import org.eclipse.emf.common.util.DiagnosticChain;
import org.openhealthtools.mdht.uml.cda.Act;

/**
 * 
 * A representation of the model object 'External Reference'.
 * 
 *
 *
 * @see org.openhealthtools.mdht.uml.cda.consol.ConsolPackage#getExternalReference()
 * @model annotation="http://www.openhealthtools.org/mdht/uml/cda/annotation templateId.root='1.3.6.1.4.1.19376.1.5.3.1.4.4' constraints.validation.error='ExternalReferenceTemplateId ExternalReferenceHasNoCode ExternalReferenceHasReference ExternalReferenceHasReferenceExternalDocument ExternalReferenceHasReferenceExternalDocumentID ExternalReferenceHasReferenceExternalDocumentText ExternalReferenceClassCode ExternalReferenceMoodCode ExternalReferenceId ExternalReferenceText' classCode='ACT' moodCode='EVN'"
 * @generated
 */
public interface ExternalReference extends Act {
	/**
	 * 
	 * 
	 * 
	 * not self.code.oclIsUndefined() implies self.code.nullFlavor = vocab::NullFlavor::NA
	 * @param diagnostics The chain of diagnostics to which problems are to be appended.
	 * @param context The cache of context-specific information.
	 * 
	 * @model annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='not self.code.oclIsUndefined() implies self.code.nullFlavor = vocab::NullFlavor::NA'"
	 * @generated
	 */
	boolean validateExternalReferenceHasNoCode(DiagnosticChain diagnostics, Map context);

	/**
	 * 
	 * 
	 * 
	 * self.reference->select(r| r.typeCode <> vocab::x_ActRelationshipExternalReference::REFR and r.typeCode <> vocab::x_ActRelationshipExternalReference::SPRT)->size() = 0
	 * @param diagnostics The chain of diagnostics to which problems are to be appended.
	 * @param context The cache of context-specific information.
	 * 
	 * @model annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.reference->select(r| r.typeCode <> vocab::x_ActRelationshipExternalReference::REFR and r.typeCode <> vocab::x_ActRelationshipExternalReference::SPRT)->size() = 0'"
	 * @generated
	 */
	boolean validateExternalReferenceHasReference(DiagnosticChain diagnostics, Map context);

	/**
	 * 
	 * 
	 * 
	 * self.reference.externalDocument->select(ed | ed.classCode =  vocab::ActClassDocument::DOC and ed.moodCode =  vocab::ActMood::EVN )->size() = 1
	 * @param diagnostics The chain of diagnostics to which problems are to be appended.
	 * @param context The cache of context-specific information.
	 * 
	 * @model annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.reference.externalDocument->select(ed | ed.classCode =  vocab::ActClassDocument::DOC and ed.moodCode =  vocab::ActMood::EVN )->size() = 1'"
	 * @generated
	 */
	boolean validateExternalReferenceHasReferenceExternalDocument(DiagnosticChain diagnostics,
			Map context);

	/**
	 * 
	 * 
	 * 
	 * self.reference->select(  r | r.externalDocument.id->isEmpty() )->size() = 0
	 * @param diagnostics The chain of diagnostics to which problems are to be appended.
	 * @param context The cache of context-specific information.
	 * 
	 * @model annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.reference->select(  r | r.externalDocument.id->isEmpty() )->size() = 0'"
	 * @generated
	 */
	boolean validateExternalReferenceHasReferenceExternalDocumentID(DiagnosticChain diagnostics,
			Map context);

	/**
	 * 
	 * 
	 * 
	 * self.reference->select(  r | r.externalDocument.text.oclIsUndefined()  )->size() = 0
	 * @param diagnostics The chain of diagnostics to which problems are to be appended.
	 * @param context The cache of context-specific information.
	 * 
	 * @model annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.reference->select(  r | r.externalDocument.text.oclIsUndefined()  )->size() = 0'"
	 * @generated
	 */
	boolean validateExternalReferenceHasReferenceExternalDocumentText(DiagnosticChain diagnostics,
			Map context);

	/**
	 * 
	 * 
	 * 
	 * self.templateId->exists(id : datatypes::II | id.root = '1.3.6.1.4.1.19376.1.5.3.1.4.4')
	 * @param diagnostics The chain of diagnostics to which problems are to be appended.
	 * @param context The cache of context-specific information.
	 * 
	 * @model annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.templateId->exists(id : datatypes::II | id.root = \'1.3.6.1.4.1.19376.1.5.3.1.4.4\')'"
	 * @generated
	 */
	boolean validateExternalReferenceTemplateId(DiagnosticChain diagnostics, Map context);

	/**
	 * 
	 * 
	 * 
	 * self.classCode=vocab::x_ActClassDocumentEntryAct::ACT
	 * @param diagnostics The chain of diagnostics to which problems are to be appended.
	 * @param context The cache of context-specific information.
	 * 
	 * @model annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.classCode=vocab::x_ActClassDocumentEntryAct::ACT'"
	 * @generated
	 */
	boolean validateExternalReferenceClassCode(DiagnosticChain diagnostics, Map context);

	/**
	 * 
	 * 
	 * 
	 * self.moodCode=vocab::x_DocumentActMood::EVN
	 * @param diagnostics The chain of diagnostics to which problems are to be appended.
	 * @param context The cache of context-specific information.
	 * 
	 * @model annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='self.moodCode=vocab::x_DocumentActMood::EVN'"
	 * @generated
	 */
	boolean validateExternalReferenceMoodCode(DiagnosticChain diagnostics, Map context);

	/**
	 * 
	 * 
	 * 
	 * (self.id->isEmpty() or self.id->exists(element | element.isNullFlavorUndefined())) implies (not self.id->isEmpty())
	 * @param diagnostics The chain of diagnostics to which problems are to be appended.
	 * @param context The cache of context-specific information.
	 * 
	 * @model annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='(self.id->isEmpty() or self.id->exists(element | element.isNullFlavorUndefined())) implies (not self.id->isEmpty())'"
	 * @generated
	 */
	boolean validateExternalReferenceId(DiagnosticChain diagnostics, Map context);

	/**
	 * 
	 * 
	 * 
	 * (self.text.oclIsUndefined() or self.text.isNullFlavorUndefined()) implies (not self.text.oclIsUndefined())
	 * @param diagnostics The chain of diagnostics to which problems are to be appended.
	 * @param context The cache of context-specific information.
	 * 
	 * @model annotation="http://www.eclipse.org/uml2/1.1.0/GenModel body='(self.text.oclIsUndefined() or self.text.isNullFlavorUndefined()) implies (not self.text.oclIsUndefined())'"
	 * @generated
	 */
	boolean validateExternalReferenceText(DiagnosticChain diagnostics, Map context);

	/**
	 * 
	 * 
	 * @generated
	 */
	public ExternalReference init();
} // ExternalReference




© 2015 - 2024 Weber Informatics LLC | Privacy Policy