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

org.openhealthtools.mdht.uml.cda.operations.OrganizerOperations Maven / Gradle / Ivy

/*******************************************************************************
 * Copyright (c) 2009, 2011 IBM Corporation 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:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.openhealthtools.mdht.uml.cda.operations;

import java.util.ArrayList;
import java.util.List;

import org.eclipse.emf.common.util.BasicEList;
import org.eclipse.emf.common.util.EList;
import org.openhealthtools.mdht.uml.cda.Act;
import org.openhealthtools.mdht.uml.cda.CDAFactory;
import org.openhealthtools.mdht.uml.cda.ClinicalStatement;
import org.openhealthtools.mdht.uml.cda.Component4;
import org.openhealthtools.mdht.uml.cda.Encounter;
import org.openhealthtools.mdht.uml.cda.Observation;
import org.openhealthtools.mdht.uml.cda.ObservationMedia;
import org.openhealthtools.mdht.uml.cda.Organizer;
import org.openhealthtools.mdht.uml.cda.Procedure;
import org.openhealthtools.mdht.uml.cda.RegionOfInterest;
import org.openhealthtools.mdht.uml.cda.SubstanceAdministration;
import org.openhealthtools.mdht.uml.cda.Supply;
import org.openhealthtools.mdht.uml.hl7.vocab.x_ActRelationshipEntryRelationship;

/**
 * 
 * A static utility class that provides operations related to 'Organizer' model objects.
 * 
 *
 * 

* The following operations are supported: *

    *
  • {@link org.openhealthtools.mdht.uml.cda.Organizer#addOrganizer(org.openhealthtools.mdht.uml.cda.Organizer) Add Organizer}
  • *
  • {@link org.openhealthtools.mdht.uml.cda.Organizer#addAct(org.openhealthtools.mdht.uml.cda.Act) Add Act}
  • *
  • {@link org.openhealthtools.mdht.uml.cda.Organizer#addEncounter(org.openhealthtools.mdht.uml.cda.Encounter) Add Encounter}
  • *
  • {@link org.openhealthtools.mdht.uml.cda.Organizer#addObservation(org.openhealthtools.mdht.uml.cda.Observation) Add Observation}
  • *
  • {@link org.openhealthtools.mdht.uml.cda.Organizer#addObservationMedia(org.openhealthtools.mdht.uml.cda.ObservationMedia) Add Observation Media}
  • *
  • {@link org.openhealthtools.mdht.uml.cda.Organizer#addProcedure(org.openhealthtools.mdht.uml.cda.Procedure) Add Procedure}
  • *
  • {@link org.openhealthtools.mdht.uml.cda.Organizer#addRegionOfInterest(org.openhealthtools.mdht.uml.cda.RegionOfInterest) Add Region Of Interest}
  • *
  • {@link org.openhealthtools.mdht.uml.cda.Organizer#addSubstanceAdministration(org.openhealthtools.mdht.uml.cda.SubstanceAdministration) Add Substance Administration}
  • *
  • {@link org.openhealthtools.mdht.uml.cda.Organizer#addSupply(org.openhealthtools.mdht.uml.cda.Supply) Add Supply}
  • *
  • {@link org.openhealthtools.mdht.uml.cda.Organizer#getActs() Get Acts}
  • *
  • {@link org.openhealthtools.mdht.uml.cda.Organizer#getEncounters() Get Encounters}
  • *
  • {@link org.openhealthtools.mdht.uml.cda.Organizer#getObservations() Get Observations}
  • *
  • {@link org.openhealthtools.mdht.uml.cda.Organizer#getObservationMedia() Get Observation Media}
  • *
  • {@link org.openhealthtools.mdht.uml.cda.Organizer#getOrganizers() Get Organizers}
  • *
  • {@link org.openhealthtools.mdht.uml.cda.Organizer#getProcedures() Get Procedures}
  • *
  • {@link org.openhealthtools.mdht.uml.cda.Organizer#getRegionsOfInterest() Get Regions Of Interest}
  • *
  • {@link org.openhealthtools.mdht.uml.cda.Organizer#getSubstanceAdministrations() Get Substance Administrations}
  • *
  • {@link org.openhealthtools.mdht.uml.cda.Organizer#getSupplies() Get Supplies}
  • *
  • {@link org.openhealthtools.mdht.uml.cda.Organizer#getEntryRelationshipTargets(org.openhealthtools.mdht.uml.hl7.vocab.x_ActRelationshipEntryRelationship, java.lang.Object) Get Entry Relationship Targets}
  • *
  • {@link org.openhealthtools.mdht.uml.cda.Organizer#getEntryRelationshipTargets(java.lang.Object) Get Entry Relationship Targets}
  • *
*

* * @generated */ public class OrganizerOperations extends ClinicalStatementOperations { /** * * * @generated */ protected OrganizerOperations() { super(); } /** * * * @generated NOT */ public static void addAct(Organizer organizer, Act act) { Component4 component4 = CDAFactory.eINSTANCE.createComponent4(); component4.setAct(act); organizer.getComponents().add(component4); } /** * * * @generated NOT */ public static void addEncounter(Organizer organizer, Encounter encounter) { Component4 component4 = CDAFactory.eINSTANCE.createComponent4(); component4.setEncounter(encounter); organizer.getComponents().add(component4); } /** * * * @generated NOT */ public static void addObservation(Organizer organizer, Observation observation) { Component4 component4 = CDAFactory.eINSTANCE.createComponent4(); component4.setObservation(observation); organizer.getComponents().add(component4); } /** * * * @generated NOT */ public static void addObservationMedia(Organizer organizer, ObservationMedia observationMedia) { Component4 component4 = CDAFactory.eINSTANCE.createComponent4(); component4.setObservationMedia(observationMedia); organizer.getComponents().add(component4); } /** * * * @generated NOT */ public static void addOrganizer(Organizer organizer, Organizer newOrganizer) { Component4 component4 = CDAFactory.eINSTANCE.createComponent4(); component4.setOrganizer(newOrganizer); organizer.getComponents().add(component4); } /** * * * @generated NOT */ public static void addProcedure(Organizer organizer, Procedure procedure) { Component4 component4 = CDAFactory.eINSTANCE.createComponent4(); component4.setProcedure(procedure); organizer.getComponents().add(component4); } /** * * * @generated NOT */ public static void addRegionOfInterest(Organizer organizer, RegionOfInterest regionOfInterest) { Component4 component4 = CDAFactory.eINSTANCE.createComponent4(); component4.setRegionOfInterest(regionOfInterest); organizer.getComponents().add(component4); } /** * * * @generated NOT */ public static void addSubstanceAdministration(Organizer organizer, SubstanceAdministration substanceAdministration) { Component4 component4 = CDAFactory.eINSTANCE.createComponent4(); component4.setSubstanceAdministration(substanceAdministration); organizer.getComponents().add(component4); } /** * * * @generated NOT */ public static void addSupply(Organizer organizer, Supply supply) { Component4 component4 = CDAFactory.eINSTANCE.createComponent4(); component4.setSupply(supply); organizer.getComponents().add(component4); } /** * * * @generated NOT */ public static EList getActs(Organizer organizer) { List acts = new ArrayList(); for (Component4 component : organizer.getComponents()) { if (component.getAct() != null) { acts.add(component.getAct()); } } return new BasicEList.UnmodifiableEList(acts.size(), acts.toArray()); } /** * * * @generated NOT */ public static EList getEncounters(Organizer organizer) { List encounters = new ArrayList(); for (Component4 component : organizer.getComponents()) { if (component.getEncounter() != null) { encounters.add(component.getEncounter()); } } return new BasicEList.UnmodifiableEList(encounters.size(), encounters.toArray()); } /** * * * @generated NOT */ public static EList getObservations(Organizer organizer) { List observations = new ArrayList(); for (Component4 component : organizer.getComponents()) { if (component.getObservation() != null) { observations.add(component.getObservation()); } } return new BasicEList.UnmodifiableEList(observations.size(), observations.toArray()); } /** * * * @generated NOT */ public static EList getObservationMedia(Organizer organizer) { List observationMedia = new ArrayList(); for (Component4 component : organizer.getComponents()) { if (component.getObservationMedia() != null) { observationMedia.add(component.getObservationMedia()); } } return new BasicEList.UnmodifiableEList(observationMedia.size(), observationMedia.toArray()); } /** * * * @generated NOT */ public static EList getOrganizers(Organizer organizer) { List organizers = new ArrayList(); for (Component4 component : organizer.getComponents()) { if (component.getOrganizer() != null) { organizers.add(component.getOrganizer()); } } return new BasicEList.UnmodifiableEList(organizers.size(), organizers.toArray()); } /** * * * @generated NOT */ public static EList getProcedures(Organizer organizer) { List procedures = new ArrayList(); for (Component4 component : organizer.getComponents()) { if (component.getProcedure() != null) { procedures.add(component.getProcedure()); } } return new BasicEList.UnmodifiableEList(procedures.size(), procedures.toArray()); } /** * * * @generated NOT */ public static EList getRegionsOfInterest(Organizer organizer) { List regionsOfInterest = new ArrayList(); for (Component4 component : organizer.getComponents()) { if (component.getRegionOfInterest() != null) { regionsOfInterest.add(component.getRegionOfInterest()); } } return new BasicEList.UnmodifiableEList(regionsOfInterest.size(), regionsOfInterest.toArray()); } /** * * * @generated NOT */ public static EList getSubstanceAdministrations(Organizer organizer) { List substanceAdministrations = new ArrayList(); for (Component4 component : organizer.getComponents()) { if (component.getSubstanceAdministration() != null) { substanceAdministrations.add(component.getSubstanceAdministration()); } } return new BasicEList.UnmodifiableEList( substanceAdministrations.size(), substanceAdministrations.toArray()); } /** * * * @generated NOT */ public static EList getSupplies(Organizer organizer) { List supplies = new ArrayList(); for (Component4 component : organizer.getComponents()) { if (component.getSupply() != null) { supplies.add(component.getSupply()); } } return new BasicEList.UnmodifiableEList(supplies.size(), supplies.toArray()); } /** * * * @generated NOT */ public static EList getEntryRelationshipTargets(Organizer organizer, x_ActRelationshipEntryRelationship typeCode, Object targetClass) { throw new UnsupportedOperationException("This clinical statement does not have entryRelationship"); } /** * * * @generated NOT */ public static EList getEntryRelationshipTargets(Organizer organizer, Object targetClass) { throw new UnsupportedOperationException("This clinical statement does not have entryRelationship"); } } // OrganizerOperations




© 2015 - 2024 Weber Informatics LLC | Privacy Policy