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

ca.uhn.fhir.model.dstu.resource.Media Maven / Gradle / Ivy

There is a newer version: 7.6.1
Show newest version
















package ca.uhn.fhir.model.dstu.resource;


import java.util.*;
import ca.uhn.fhir.model.api.*;
import ca.uhn.fhir.model.api.annotation.*;
import ca.uhn.fhir.rest.gclient.*;

import ca.uhn.fhir.model.dstu.composite.AddressDt;
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.AdmitSourceEnum;
import ca.uhn.fhir.model.dstu.resource.AdverseReaction;
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum;
import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance;
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
import ca.uhn.fhir.model.dstu.resource.Appointment;
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
import ca.uhn.fhir.model.dstu.resource.Availability;
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
import ca.uhn.fhir.model.dstu.resource.CarePlan;
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum;
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum;
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
import ca.uhn.fhir.model.dstu.composite.CodingDt;
import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum;
import ca.uhn.fhir.model.dstu.resource.Condition;
import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ConformanceEventModeEnum;
import ca.uhn.fhir.model.dstu.valueset.ConformanceStatementStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ConstraintSeverityEnum;
import ca.uhn.fhir.model.dstu.composite.ContactDt;
import ca.uhn.fhir.model.dstu.valueset.ContactUseEnum;
import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum;
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Device;
import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport;
import ca.uhn.fhir.model.dstu.resource.DiagnosticOrder;
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderPriorityEnum;
import ca.uhn.fhir.model.dstu.valueset.DiagnosticOrderStatusEnum;
import ca.uhn.fhir.model.dstu.resource.DiagnosticReport;
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
import ca.uhn.fhir.model.dstu.resource.DocumentManifest;
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
import ca.uhn.fhir.model.dstu.resource.DocumentReference;
import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Encounter;
import ca.uhn.fhir.model.dstu.valueset.EncounterClassEnum;
import ca.uhn.fhir.model.dstu.valueset.EncounterStateEnum;
import ca.uhn.fhir.model.dstu.valueset.EncounterTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ExposureTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
import ca.uhn.fhir.model.dstu.resource.FamilyHistory;
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
import ca.uhn.fhir.model.dstu.resource.GVFMeta;
import ca.uhn.fhir.model.dstu.resource.Group;
import ca.uhn.fhir.model.dstu.valueset.GroupTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.HierarchicalRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.composite.HumanNameDt;
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum;
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
import ca.uhn.fhir.model.dstu.resource.Immunization;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum;
import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum;
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum;
import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ListModeEnum;
import ca.uhn.fhir.model.dstu.resource.Location;
import ca.uhn.fhir.model.dstu.valueset.LocationModeEnum;
import ca.uhn.fhir.model.dstu.valueset.LocationStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.LocationTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.MaritalStatusCodesEnum;
import ca.uhn.fhir.model.dstu.resource.Media;
import ca.uhn.fhir.model.dstu.valueset.MediaTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Medication;
import ca.uhn.fhir.model.dstu.resource.MedicationAdministration;
import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum;
import ca.uhn.fhir.model.dstu.resource.MedicationDispense;
import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
import ca.uhn.fhir.model.dstu.resource.MedicationPrescription;
import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum;
import ca.uhn.fhir.model.dstu.resource.MedicationStatement;
import ca.uhn.fhir.model.dstu.valueset.MessageEventEnum;
import ca.uhn.fhir.model.dstu.valueset.MessageSignificanceCategoryEnum;
import ca.uhn.fhir.model.dstu.valueset.MessageTransportEnum;
import ca.uhn.fhir.model.dstu.resource.Microarray;
import ca.uhn.fhir.model.dstu.valueset.ModalityEnum;
import ca.uhn.fhir.model.dstu.resource.Observation;
import ca.uhn.fhir.model.dstu.valueset.ObservationRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ObservationReliabilityEnum;
import ca.uhn.fhir.model.dstu.valueset.ObservationStatusEnum;
import ca.uhn.fhir.model.dstu.resource.OperationOutcome;
import ca.uhn.fhir.model.dstu.resource.Order;
import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum;
import ca.uhn.fhir.model.dstu.resource.Organization;
import ca.uhn.fhir.model.dstu.valueset.OrganizationTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ParticipantTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Patient;
import ca.uhn.fhir.model.dstu.composite.PeriodDt;
import ca.uhn.fhir.model.dstu.resource.Practitioner;
import ca.uhn.fhir.model.dstu.valueset.PractitionerRoleEnum;
import ca.uhn.fhir.model.dstu.valueset.PractitionerSpecialtyEnum;
import ca.uhn.fhir.model.dstu.resource.Procedure;
import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum;
import ca.uhn.fhir.model.dstu.resource.Profile;
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum;
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum;
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum;
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum;
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum;
import ca.uhn.fhir.model.dstu.composite.RangeDt;
import ca.uhn.fhir.model.dstu.composite.RatioDt;
import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum;
import ca.uhn.fhir.model.dstu.resource.RelatedPerson;
import ca.uhn.fhir.model.dstu.valueset.ResourceProfileStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.ResponseTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulConformanceModeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulOperationSystemEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulOperationTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.RestfulSecurityServiceEnum;
import ca.uhn.fhir.model.dstu.composite.SampledDataDt;
import ca.uhn.fhir.model.dstu.composite.ScheduleDt;
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum;
import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis;
import ca.uhn.fhir.model.dstu.resource.SequencingLab;
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
import ca.uhn.fhir.model.dstu.resource.Slot;
import ca.uhn.fhir.model.dstu.resource.Specimen;
import ca.uhn.fhir.model.dstu.valueset.SpecimenCollectionMethodEnum;
import ca.uhn.fhir.model.dstu.resource.Substance;
import ca.uhn.fhir.model.dstu.valueset.SupplyDispenseStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum;
import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum;
import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum;
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
import ca.uhn.fhir.model.dstu.resource.ValueSet;
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
import ca.uhn.fhir.model.api.ExtensionDt;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.dstu.composite.AgeDt;
import ca.uhn.fhir.model.dstu.composite.DurationDt;
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
import ca.uhn.fhir.model.dstu.resource.Binary;
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
import ca.uhn.fhir.model.primitive.BooleanDt;
import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt;
import ca.uhn.fhir.model.primitive.CodeDt;
import ca.uhn.fhir.model.primitive.DateDt;
import ca.uhn.fhir.model.primitive.DateTimeDt;
import ca.uhn.fhir.model.primitive.DecimalDt;
import ca.uhn.fhir.model.primitive.IdDt;
import ca.uhn.fhir.model.primitive.IdrefDt;
import ca.uhn.fhir.model.primitive.InstantDt;
import ca.uhn.fhir.model.primitive.IntegerDt;
import ca.uhn.fhir.model.primitive.OidDt;
import ca.uhn.fhir.model.primitive.StringDt;
import ca.uhn.fhir.model.primitive.UriDt;


/**
 * HAPI/FHIR Media Resource
 * (A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference)
 *
 * 

* Definition: * A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference *

* *

* Requirements: * *

* *

* Profile Definition: * http://hl7.org/fhir/profiles/Media *

* */ @ResourceDef(name="Media", profile="http://hl7.org/fhir/profiles/Media", id="media") public class Media extends ca.uhn.fhir.model.dstu.resource.BaseResource implements IResource { /** * Search parameter constant for type *

* Description:
* Type: token
* Path: Media.type
*

*/ @SearchParamDefinition(name="type", path="Media.type", description="", type="token" ) public static final String SP_TYPE = "type"; /** * Fluent Client search parameter constant for type *

* Description:
* Type: token
* Path: Media.type
*

*/ public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE); /** * Search parameter constant for subtype *

* Description:
* Type: token
* Path: Media.subtype
*

*/ @SearchParamDefinition(name="subtype", path="Media.subtype", description="", type="token" ) public static final String SP_SUBTYPE = "subtype"; /** * Fluent Client search parameter constant for subtype *

* Description:
* Type: token
* Path: Media.subtype
*

*/ public static final TokenClientParam SUBTYPE = new TokenClientParam(SP_SUBTYPE); /** * Search parameter constant for identifier *

* Description:
* Type: token
* Path: Media.identifier
*

*/ @SearchParamDefinition(name="identifier", path="Media.identifier", description="", type="token" ) public static final String SP_IDENTIFIER = "identifier"; /** * Fluent Client search parameter constant for identifier *

* Description:
* Type: token
* Path: Media.identifier
*

*/ public static final TokenClientParam IDENTIFIER = new TokenClientParam(SP_IDENTIFIER); /** * Search parameter constant for date *

* Description:
* Type: date
* Path: Media.dateTime
*

*/ @SearchParamDefinition(name="date", path="Media.dateTime", description="", type="date" ) public static final String SP_DATE = "date"; /** * Fluent Client search parameter constant for date *

* Description:
* Type: date
* Path: Media.dateTime
*

*/ public static final DateClientParam DATE = new DateClientParam(SP_DATE); /** * Search parameter constant for subject *

* Description:
* Type: reference
* Path: Media.subject
*

*/ @SearchParamDefinition(name="subject", path="Media.subject", description="", type="reference" ) public static final String SP_SUBJECT = "subject"; /** * Fluent Client search parameter constant for subject *

* Description:
* Type: reference
* Path: Media.subject
*

*/ public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Media.subject". */ public static final Include INCLUDE_SUBJECT = new Include("Media.subject"); /** * Search parameter constant for operator *

* Description:
* Type: reference
* Path: Media.operator
*

*/ @SearchParamDefinition(name="operator", path="Media.operator", description="", type="reference" ) public static final String SP_OPERATOR = "operator"; /** * Fluent Client search parameter constant for operator *

* Description:
* Type: reference
* Path: Media.operator
*

*/ public static final ReferenceClientParam OPERATOR = new ReferenceClientParam(SP_OPERATOR); /** * Constant for fluent queries to be used to add include statements. Specifies * the path value of "Media.operator". */ public static final Include INCLUDE_OPERATOR = new Include("Media.operator"); /** * Search parameter constant for view *

* Description:
* Type: token
* Path: Media.view
*

*/ @SearchParamDefinition(name="view", path="Media.view", description="", type="token" ) public static final String SP_VIEW = "view"; /** * Fluent Client search parameter constant for view *

* Description:
* Type: token
* Path: Media.view
*

*/ public static final TokenClientParam VIEW = new TokenClientParam(SP_VIEW); @Child(name="type", type=CodeDt.class, order=0, min=1, max=1, summary=true, modifier=false) @Description( shortDefinition="photo | video | audio", formalDefinition="Whether the media is a photo (still image), an audio recording, or a video recording" ) private BoundCodeDt myType; @Child(name="subtype", type=CodeableConceptDt.class, order=1, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="The type of acquisition equipment/process", formalDefinition="Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality" ) private CodeableConceptDt mySubtype; @Child(name="identifier", type=IdentifierDt.class, order=2, min=0, max=Child.MAX_UNLIMITED, summary=true, modifier=false) @Description( shortDefinition="Identifier(s) for the image", formalDefinition="Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers" ) private java.util.List myIdentifier; @Child(name="dateTime", type=DateTimeDt.class, order=3, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="When the media was taken/recorded (end)", formalDefinition="When the media was originally recorded. For video and audio, if the length of the recording is not insignificant, this is the end of the recording" ) private DateTimeDt myDateTime; @Child(name="subject", order=4, min=0, max=1, summary=true, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Group.class, ca.uhn.fhir.model.dstu.resource.Device.class, ca.uhn.fhir.model.dstu.resource.Specimen.class }) @Description( shortDefinition="Who/What this Media is a record of", formalDefinition="Who/What this Media is a record of" ) private ResourceReferenceDt mySubject; @Child(name="operator", order=5, min=0, max=1, summary=true, modifier=false, type={ ca.uhn.fhir.model.dstu.resource.Practitioner.class }) @Description( shortDefinition="The person who generated the image", formalDefinition="The person who administered the collection of the image" ) private ResourceReferenceDt myOperator; @Child(name="view", type=CodeableConceptDt.class, order=6, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="Imaging view e.g Lateral or Antero-posterior", formalDefinition="The name of the imaging view e.g Lateral or Antero-posterior (AP)." ) private CodeableConceptDt myView; @Child(name="deviceName", type=StringDt.class, order=7, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="Name of the device/manufacturer", formalDefinition="The name of the device / manufacturer of the device that was used to make the recording" ) private StringDt myDeviceName; @Child(name="height", type=IntegerDt.class, order=8, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="Height of the image in pixels(photo/video)", formalDefinition="Height of the image in pixels(photo/video)" ) private IntegerDt myHeight; @Child(name="width", type=IntegerDt.class, order=9, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="Width of the image in pixels (photo/video)", formalDefinition="Width of the image in pixels (photo/video)" ) private IntegerDt myWidth; @Child(name="frames", type=IntegerDt.class, order=10, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="Number of frames if > 1 (photo)", formalDefinition="The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required" ) private IntegerDt myFrames; @Child(name="length", type=IntegerDt.class, order=11, min=0, max=1, summary=true, modifier=false) @Description( shortDefinition="Length in seconds (audio / video)", formalDefinition="The length of the recording in seconds - for audio and video" ) private IntegerDt myLength; @Child(name="content", type=AttachmentDt.class, order=12, min=1, max=1, summary=false, modifier=false) @Description( shortDefinition="Actual Media - reference or data", formalDefinition="The actual content of the media - inline or by direct reference to the media source file" ) private AttachmentDt myContent; @Override public boolean isEmpty() { return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myType, mySubtype, myIdentifier, myDateTime, mySubject, myOperator, myView, myDeviceName, myHeight, myWidth, myFrames, myLength, myContent); } @Override public List getAllPopulatedChildElementsOfType(Class theType) { return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myType, mySubtype, myIdentifier, myDateTime, mySubject, myOperator, myView, myDeviceName, myHeight, myWidth, myFrames, myLength, myContent); } /** * Gets the value(s) for type (photo | video | audio). * creating it if it does * not exist. Will not return null. * *

* Definition: * Whether the media is a photo (still image), an audio recording, or a video recording *

*/ public BoundCodeDt getType() { if (myType == null) { myType = new BoundCodeDt(MediaTypeEnum.VALUESET_BINDER); } return myType; } /** * Gets the value(s) for type (photo | video | audio). * creating it if it does * not exist. Will not return null. * *

* Definition: * Whether the media is a photo (still image), an audio recording, or a video recording *

*/ public BoundCodeDt getTypeElement() { if (myType == null) { myType = new BoundCodeDt(MediaTypeEnum.VALUESET_BINDER); } return myType; } /** * Sets the value(s) for type (photo | video | audio) * *

* Definition: * Whether the media is a photo (still image), an audio recording, or a video recording *

*/ public Media setType(BoundCodeDt theValue) { myType = theValue; return this; } /** * Sets the value(s) for type (photo | video | audio) * *

* Definition: * Whether the media is a photo (still image), an audio recording, or a video recording *

*/ public Media setType(MediaTypeEnum theValue) { getType().setValueAsEnum(theValue); return this; } /** * Gets the value(s) for subtype (The type of acquisition equipment/process). * creating it if it does * not exist. Will not return null. * *

* Definition: * Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality *

*/ public CodeableConceptDt getSubtype() { if (mySubtype == null) { mySubtype = new CodeableConceptDt(); } return mySubtype; } /** * Gets the value(s) for subtype (The type of acquisition equipment/process). * creating it if it does * not exist. Will not return null. * *

* Definition: * Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality *

*/ public CodeableConceptDt getSubtypeElement() { if (mySubtype == null) { mySubtype = new CodeableConceptDt(); } return mySubtype; } /** * Sets the value(s) for subtype (The type of acquisition equipment/process) * *

* Definition: * Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality *

*/ public Media setSubtype(CodeableConceptDt theValue) { mySubtype = theValue; return this; } /** * Gets the value(s) for identifier (Identifier(s) for the image). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers *

*/ public java.util.List getIdentifier() { if (myIdentifier == null) { myIdentifier = new java.util.ArrayList(); } return myIdentifier; } /** * Gets the value(s) for identifier (Identifier(s) for the image). * creating it if it does * not exist. Will not return null. * *

* Definition: * Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers *

*/ public java.util.List getIdentifierElement() { if (myIdentifier == null) { myIdentifier = new java.util.ArrayList(); } return myIdentifier; } /** * Sets the value(s) for identifier (Identifier(s) for the image) * *

* Definition: * Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers *

*/ public Media setIdentifier(java.util.List theValue) { myIdentifier = theValue; return this; } /** * Adds and returns a new value for identifier (Identifier(s) for the image) * *

* Definition: * Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers *

*/ public IdentifierDt addIdentifier() { IdentifierDt newType = new IdentifierDt(); getIdentifier().add(newType); return newType; } /** * Gets the first repetition for identifier (Identifier(s) for the image), * creating it if it does not already exist. * *

* Definition: * Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers *

*/ public IdentifierDt getIdentifierFirstRep() { if (getIdentifier().isEmpty()) { return addIdentifier(); } return getIdentifier().get(0); } /** * Adds a new value for identifier (Identifier(s) for the image) * *

* Definition: * Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers *

* * @return Returns a reference to this object, to allow for simple chaining. */ public Media addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) { if (myIdentifier == null) { myIdentifier = new java.util.ArrayList(); } myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel)); return this; } /** * Adds a new value for identifier (Identifier(s) for the image) * *

* Definition: * Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers *

* * @return Returns a reference to this object, to allow for simple chaining. */ public Media addIdentifier( String theSystem, String theValue) { if (myIdentifier == null) { myIdentifier = new java.util.ArrayList(); } myIdentifier.add(new IdentifierDt(theSystem, theValue)); return this; } /** * Gets the value(s) for dateTime (When the media was taken/recorded (end)). * creating it if it does * not exist. Will not return null. * *

* Definition: * When the media was originally recorded. For video and audio, if the length of the recording is not insignificant, this is the end of the recording *

*/ public DateTimeDt getDateTime() { if (myDateTime == null) { myDateTime = new DateTimeDt(); } return myDateTime; } /** * Gets the value(s) for dateTime (When the media was taken/recorded (end)). * creating it if it does * not exist. Will not return null. * *

* Definition: * When the media was originally recorded. For video and audio, if the length of the recording is not insignificant, this is the end of the recording *

*/ public DateTimeDt getDateTimeElement() { if (myDateTime == null) { myDateTime = new DateTimeDt(); } return myDateTime; } /** * Sets the value(s) for dateTime (When the media was taken/recorded (end)) * *

* Definition: * When the media was originally recorded. For video and audio, if the length of the recording is not insignificant, this is the end of the recording *

*/ public Media setDateTime(DateTimeDt theValue) { myDateTime = theValue; return this; } /** * Sets the value for dateTime (When the media was taken/recorded (end)) * *

* Definition: * When the media was originally recorded. For video and audio, if the length of the recording is not insignificant, this is the end of the recording *

*/ public Media setDateTime( Date theDate, TemporalPrecisionEnum thePrecision) { myDateTime = new DateTimeDt(theDate, thePrecision); return this; } /** * Sets the value for dateTime (When the media was taken/recorded (end)) * *

* Definition: * When the media was originally recorded. For video and audio, if the length of the recording is not insignificant, this is the end of the recording *

*/ public Media setDateTimeWithSecondsPrecision( Date theDate) { myDateTime = new DateTimeDt(theDate); return this; } /** * Gets the value(s) for subject (Who/What this Media is a record of). * creating it if it does * not exist. Will not return null. * *

* Definition: * Who/What this Media is a record of *

*/ public ResourceReferenceDt getSubject() { if (mySubject == null) { mySubject = new ResourceReferenceDt(); } return mySubject; } /** * Gets the value(s) for subject (Who/What this Media is a record of). * creating it if it does * not exist. Will not return null. * *

* Definition: * Who/What this Media is a record of *

*/ public ResourceReferenceDt getSubjectElement() { if (mySubject == null) { mySubject = new ResourceReferenceDt(); } return mySubject; } /** * Sets the value(s) for subject (Who/What this Media is a record of) * *

* Definition: * Who/What this Media is a record of *

*/ public Media setSubject(ResourceReferenceDt theValue) { mySubject = theValue; return this; } /** * Gets the value(s) for operator (The person who generated the image). * creating it if it does * not exist. Will not return null. * *

* Definition: * The person who administered the collection of the image *

*/ public ResourceReferenceDt getOperator() { if (myOperator == null) { myOperator = new ResourceReferenceDt(); } return myOperator; } /** * Gets the value(s) for operator (The person who generated the image). * creating it if it does * not exist. Will not return null. * *

* Definition: * The person who administered the collection of the image *

*/ public ResourceReferenceDt getOperatorElement() { if (myOperator == null) { myOperator = new ResourceReferenceDt(); } return myOperator; } /** * Sets the value(s) for operator (The person who generated the image) * *

* Definition: * The person who administered the collection of the image *

*/ public Media setOperator(ResourceReferenceDt theValue) { myOperator = theValue; return this; } /** * Gets the value(s) for view (Imaging view e.g Lateral or Antero-posterior). * creating it if it does * not exist. Will not return null. * *

* Definition: * The name of the imaging view e.g Lateral or Antero-posterior (AP). *

*/ public CodeableConceptDt getView() { if (myView == null) { myView = new CodeableConceptDt(); } return myView; } /** * Gets the value(s) for view (Imaging view e.g Lateral or Antero-posterior). * creating it if it does * not exist. Will not return null. * *

* Definition: * The name of the imaging view e.g Lateral or Antero-posterior (AP). *

*/ public CodeableConceptDt getViewElement() { if (myView == null) { myView = new CodeableConceptDt(); } return myView; } /** * Sets the value(s) for view (Imaging view e.g Lateral or Antero-posterior) * *

* Definition: * The name of the imaging view e.g Lateral or Antero-posterior (AP). *

*/ public Media setView(CodeableConceptDt theValue) { myView = theValue; return this; } /** * Gets the value(s) for deviceName (Name of the device/manufacturer). * creating it if it does * not exist. Will not return null. * *

* Definition: * The name of the device / manufacturer of the device that was used to make the recording *

*/ public StringDt getDeviceName() { if (myDeviceName == null) { myDeviceName = new StringDt(); } return myDeviceName; } /** * Gets the value(s) for deviceName (Name of the device/manufacturer). * creating it if it does * not exist. Will not return null. * *

* Definition: * The name of the device / manufacturer of the device that was used to make the recording *

*/ public StringDt getDeviceNameElement() { if (myDeviceName == null) { myDeviceName = new StringDt(); } return myDeviceName; } /** * Sets the value(s) for deviceName (Name of the device/manufacturer) * *

* Definition: * The name of the device / manufacturer of the device that was used to make the recording *

*/ public Media setDeviceName(StringDt theValue) { myDeviceName = theValue; return this; } /** * Sets the value for deviceName (Name of the device/manufacturer) * *

* Definition: * The name of the device / manufacturer of the device that was used to make the recording *

*/ public Media setDeviceName( String theString) { myDeviceName = new StringDt(theString); return this; } /** * Gets the value(s) for height (Height of the image in pixels(photo/video)). * creating it if it does * not exist. Will not return null. * *

* Definition: * Height of the image in pixels(photo/video) *

*/ public IntegerDt getHeight() { if (myHeight == null) { myHeight = new IntegerDt(); } return myHeight; } /** * Gets the value(s) for height (Height of the image in pixels(photo/video)). * creating it if it does * not exist. Will not return null. * *

* Definition: * Height of the image in pixels(photo/video) *

*/ public IntegerDt getHeightElement() { if (myHeight == null) { myHeight = new IntegerDt(); } return myHeight; } /** * Sets the value(s) for height (Height of the image in pixels(photo/video)) * *

* Definition: * Height of the image in pixels(photo/video) *

*/ public Media setHeight(IntegerDt theValue) { myHeight = theValue; return this; } /** * Sets the value for height (Height of the image in pixels(photo/video)) * *

* Definition: * Height of the image in pixels(photo/video) *

*/ public Media setHeight( int theInteger) { myHeight = new IntegerDt(theInteger); return this; } /** * Gets the value(s) for width (Width of the image in pixels (photo/video)). * creating it if it does * not exist. Will not return null. * *

* Definition: * Width of the image in pixels (photo/video) *

*/ public IntegerDt getWidth() { if (myWidth == null) { myWidth = new IntegerDt(); } return myWidth; } /** * Gets the value(s) for width (Width of the image in pixels (photo/video)). * creating it if it does * not exist. Will not return null. * *

* Definition: * Width of the image in pixels (photo/video) *

*/ public IntegerDt getWidthElement() { if (myWidth == null) { myWidth = new IntegerDt(); } return myWidth; } /** * Sets the value(s) for width (Width of the image in pixels (photo/video)) * *

* Definition: * Width of the image in pixels (photo/video) *

*/ public Media setWidth(IntegerDt theValue) { myWidth = theValue; return this; } /** * Sets the value for width (Width of the image in pixels (photo/video)) * *

* Definition: * Width of the image in pixels (photo/video) *

*/ public Media setWidth( int theInteger) { myWidth = new IntegerDt(theInteger); return this; } /** * Gets the value(s) for frames (Number of frames if > 1 (photo)). * creating it if it does * not exist. Will not return null. * *

* Definition: * The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required *

*/ public IntegerDt getFrames() { if (myFrames == null) { myFrames = new IntegerDt(); } return myFrames; } /** * Gets the value(s) for frames (Number of frames if > 1 (photo)). * creating it if it does * not exist. Will not return null. * *

* Definition: * The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required *

*/ public IntegerDt getFramesElement() { if (myFrames == null) { myFrames = new IntegerDt(); } return myFrames; } /** * Sets the value(s) for frames (Number of frames if > 1 (photo)) * *

* Definition: * The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required *

*/ public Media setFrames(IntegerDt theValue) { myFrames = theValue; return this; } /** * Sets the value for frames (Number of frames if > 1 (photo)) * *

* Definition: * The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required *

*/ public Media setFrames( int theInteger) { myFrames = new IntegerDt(theInteger); return this; } /** * Gets the value(s) for length (Length in seconds (audio / video)). * creating it if it does * not exist. Will not return null. * *

* Definition: * The length of the recording in seconds - for audio and video *

*/ public IntegerDt getLength() { if (myLength == null) { myLength = new IntegerDt(); } return myLength; } /** * Gets the value(s) for length (Length in seconds (audio / video)). * creating it if it does * not exist. Will not return null. * *

* Definition: * The length of the recording in seconds - for audio and video *

*/ public IntegerDt getLengthElement() { if (myLength == null) { myLength = new IntegerDt(); } return myLength; } /** * Sets the value(s) for length (Length in seconds (audio / video)) * *

* Definition: * The length of the recording in seconds - for audio and video *

*/ public Media setLength(IntegerDt theValue) { myLength = theValue; return this; } /** * Sets the value for length (Length in seconds (audio / video)) * *

* Definition: * The length of the recording in seconds - for audio and video *

*/ public Media setLength( int theInteger) { myLength = new IntegerDt(theInteger); return this; } /** * Gets the value(s) for content (Actual Media - reference or data). * creating it if it does * not exist. Will not return null. * *

* Definition: * The actual content of the media - inline or by direct reference to the media source file *

*/ public AttachmentDt getContent() { if (myContent == null) { myContent = new AttachmentDt(); } return myContent; } /** * Gets the value(s) for content (Actual Media - reference or data). * creating it if it does * not exist. Will not return null. * *

* Definition: * The actual content of the media - inline or by direct reference to the media source file *

*/ public AttachmentDt getContentElement() { if (myContent == null) { myContent = new AttachmentDt(); } return myContent; } /** * Sets the value(s) for content (Actual Media - reference or data) * *

* Definition: * The actual content of the media - inline or by direct reference to the media source file *

*/ public Media setContent(AttachmentDt theValue) { myContent = theValue; return this; } @Override public String getResourceName() { return "Media"; } public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum() { return ca.uhn.fhir.context.FhirVersionEnum.DSTU1; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy