Class VisionPrescription
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.dstu2.resource.BaseResource
-
- ca.uhn.fhir.model.dstu2.resource.VisionPrescription
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement,ca.uhn.fhir.model.api.IElement,ca.uhn.fhir.model.api.IResource,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions,Serializable,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseResource
public class VisionPrescription extends BaseResource implements ca.uhn.fhir.model.api.IResource
HAPI/FHIR VisionPrescription Resource ()Definition: An authorization for the supply of glasses and/or contact lenses to a patient.
Requirements:
Profile Definition: http://hl7.org/fhir/profiles/VisionPrescription
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVisionPrescription.DispenseBlock class for child element: VisionPrescription.dispense ()
-
Field Summary
Fields Modifier and Type Field Description static ca.uhn.fhir.rest.gclient.DateClientParamDATEWRITTENFluent Client search parameter constant for datewrittenstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamENCOUNTERFluent Client search parameter constant for encounterstatic ca.uhn.fhir.rest.gclient.TokenClientParamIDENTIFIERFluent Client search parameter constant for identifierstatic ca.uhn.fhir.model.api.IncludeINCLUDE_ENCOUNTERConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_PATIENTConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_PRESCRIBERConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.rest.gclient.ReferenceClientParamPATIENTFluent Client search parameter constant for patientstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamPRESCRIBERFluent Client search parameter constant for prescriberstatic StringSP_DATEWRITTENSearch parameter constant for datewrittenstatic StringSP_ENCOUNTERSearch parameter constant for encounterstatic StringSP_IDENTIFIERSearch parameter constant for identifierstatic StringSP_PATIENTSearch parameter constant for patientstatic StringSP_PRESCRIBERSearch parameter constant for prescriber-
Fields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID, SP_RES_LANGUAGE
-
-
Constructor Summary
Constructors Constructor Description VisionPrescription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VisionPrescription.DispenseaddDispense()Adds and returns a new value for dispense ()VisionPrescriptionaddDispense(VisionPrescription.Dispense theValue)Adds a given new value for dispense ()IdentifierDtaddIdentifier()Adds and returns a new value for identifier ()VisionPrescriptionaddIdentifier(IdentifierDt theValue)Adds a given new value for identifier ()<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)DategetDateWritten()Gets the value(s) for dateWritten ().ca.uhn.fhir.model.primitive.DateTimeDtgetDateWrittenElement()Gets the value(s) for dateWritten ().List<VisionPrescription.Dispense>getDispense()Gets the value(s) for dispense ().VisionPrescription.DispensegetDispenseFirstRep()Gets the first repetition for dispense (), creating it if it does not already exist.ResourceReferenceDtgetEncounter()Gets the value(s) for encounter ().List<IdentifierDt>getIdentifier()Gets the value(s) for identifier ().IdentifierDtgetIdentifierFirstRep()Gets the first repetition for identifier (), creating it if it does not already exist.ResourceReferenceDtgetPatient()Gets the value(s) for patient ().ResourceReferenceDtgetPrescriber()Gets the value(s) for prescriber ().ca.uhn.fhir.model.api.IDatatypegetReason()Gets the value(s) for reason[x] ().StringgetResourceName()ca.uhn.fhir.context.FhirVersionEnumgetStructureFhirVersionEnum()booleanisEmpty()VisionPrescriptionsetDateWritten(ca.uhn.fhir.model.primitive.DateTimeDt theValue)Sets the value(s) for dateWritten ()VisionPrescriptionsetDateWritten(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)Sets the value for dateWritten ()VisionPrescriptionsetDateWrittenWithSecondsPrecision(Date theDate)Sets the value for dateWritten ()VisionPrescriptionsetDispense(List<VisionPrescription.Dispense> theValue)Sets the value(s) for dispense ()VisionPrescriptionsetEncounter(ResourceReferenceDt theValue)Sets the value(s) for encounter ()VisionPrescriptionsetIdentifier(List<IdentifierDt> theValue)Sets the value(s) for identifier ()VisionPrescriptionsetPatient(ResourceReferenceDt theValue)Sets the value(s) for patient ()VisionPrescriptionsetPrescriber(ResourceReferenceDt theValue)Sets the value(s) for prescriber ()VisionPrescriptionsetReason(ca.uhn.fhir.model.api.IDatatype theValue)Sets the value(s) for reason[x] ()-
Methods inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
getContained, getId, getIdElement, getLanguage, getMeta, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toString
-
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, setUserData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
-
-
-
Field Detail
-
SP_DATEWRITTEN
public static final String SP_DATEWRITTEN
Search parameter constant for datewrittenDescription: Return prescriptions written on this date
Type: date
Path: VisionPrescription.dateWritten
- See Also:
- Constant Field Values
-
DATEWRITTEN
public static final ca.uhn.fhir.rest.gclient.DateClientParam DATEWRITTEN
Fluent Client search parameter constant for datewrittenDescription: Return prescriptions written on this date
Type: date
Path: VisionPrescription.dateWritten
-
SP_ENCOUNTER
public static final String SP_ENCOUNTER
Search parameter constant for encounterDescription: Return prescriptions with this encounter identifier
Type: reference
Path: VisionPrescription.encounter
- See Also:
- Constant Field Values
-
ENCOUNTER
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER
Fluent Client search parameter constant for encounterDescription: Return prescriptions with this encounter identifier
Type: reference
Path: VisionPrescription.encounter
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter constant for identifierDescription: Return prescriptions with this external identifier
Type: token
Path: VisionPrescription.identifier
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
Fluent Client search parameter constant for identifierDescription: Return prescriptions with this external identifier
Type: token
Path: VisionPrescription.identifier
-
SP_PATIENT
public static final String SP_PATIENT
Search parameter constant for patientDescription: The identity of a patient to list dispenses for
Type: reference
Path: VisionPrescription.patient
- See Also:
- Constant Field Values
-
PATIENT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
Fluent Client search parameter constant for patientDescription: The identity of a patient to list dispenses for
Type: reference
Path: VisionPrescription.patient
-
SP_PRESCRIBER
public static final String SP_PRESCRIBER
Search parameter constant for prescriberDescription:
Type: reference
Path: VisionPrescription.prescriber
- See Also:
- Constant Field Values
-
PRESCRIBER
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PRESCRIBER
Fluent Client search parameter constant for prescriberDescription:
Type: reference
Path: VisionPrescription.prescriber
-
INCLUDE_ENCOUNTER
public static final ca.uhn.fhir.model.api.Include INCLUDE_ENCOUNTER
Constant for fluent queries to be used to add include statements. Specifies the path value of "VisionPrescription:encounter".
-
INCLUDE_PATIENT
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "VisionPrescription:patient".
-
INCLUDE_PRESCRIBER
public static final ca.uhn.fhir.model.api.Include INCLUDE_PRESCRIBER
Constant for fluent queries to be used to add include statements. Specifies the path value of "VisionPrescription:prescriber".
-
-
Constructor Detail
-
VisionPrescription
public VisionPrescription()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
- Specified by:
getAllPopulatedChildElementsOfTypein interfaceca.uhn.fhir.model.api.ICompositeElement
-
getIdentifier
public List<IdentifierDt> getIdentifier()
Gets the value(s) for identifier (). creating it if it does not exist. Will not returnnull.Definition: Business identifier which may be used by other parties to reference or identify the prescription.
-
setIdentifier
public VisionPrescription setIdentifier(List<IdentifierDt> theValue)
Sets the value(s) for identifier ()Definition: Business identifier which may be used by other parties to reference or identify the prescription.
-
addIdentifier
public IdentifierDt addIdentifier()
Adds and returns a new value for identifier ()Definition: Business identifier which may be used by other parties to reference or identify the prescription.
-
addIdentifier
public VisionPrescription addIdentifier(IdentifierDt theValue)
Adds a given new value for identifier ()Definition: Business identifier which may be used by other parties to reference or identify the prescription.
- Parameters:
theValue- The identifier to add (must not benull)
-
getIdentifierFirstRep
public IdentifierDt getIdentifierFirstRep()
Gets the first repetition for identifier (), creating it if it does not already exist.Definition: Business identifier which may be used by other parties to reference or identify the prescription.
-
getDateWrittenElement
public ca.uhn.fhir.model.primitive.DateTimeDt getDateWrittenElement()
Gets the value(s) for dateWritten (). creating it if it does not exist. Will not returnnull.Definition: The date (and perhaps time) when the prescription was written
-
getDateWritten
public Date getDateWritten()
Gets the value(s) for dateWritten (). creating it if it does not exist. This method may returnnull.Definition: The date (and perhaps time) when the prescription was written
-
setDateWritten
public VisionPrescription setDateWritten(ca.uhn.fhir.model.primitive.DateTimeDt theValue)
Sets the value(s) for dateWritten ()Definition: The date (and perhaps time) when the prescription was written
-
setDateWritten
public VisionPrescription setDateWritten(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
Sets the value for dateWritten ()Definition: The date (and perhaps time) when the prescription was written
-
setDateWrittenWithSecondsPrecision
public VisionPrescription setDateWrittenWithSecondsPrecision(Date theDate)
Sets the value for dateWritten ()Definition: The date (and perhaps time) when the prescription was written
-
getPatient
public ResourceReferenceDt getPatient()
Gets the value(s) for patient (). creating it if it does not exist. Will not returnnull.Definition: A link to a resource representing the person to whom the vision products will be supplied.
-
setPatient
public VisionPrescription setPatient(ResourceReferenceDt theValue)
Sets the value(s) for patient ()Definition: A link to a resource representing the person to whom the vision products will be supplied.
-
getPrescriber
public ResourceReferenceDt getPrescriber()
Gets the value(s) for prescriber (). creating it if it does not exist. Will not returnnull.Definition: The healthcare professional responsible for authorizing the prescription
-
setPrescriber
public VisionPrescription setPrescriber(ResourceReferenceDt theValue)
Sets the value(s) for prescriber ()Definition: The healthcare professional responsible for authorizing the prescription
-
getEncounter
public ResourceReferenceDt getEncounter()
Gets the value(s) for encounter (). creating it if it does not exist. Will not returnnull.Definition: A link to a resource that identifies the particular occurrence of contact between patient and health care provider.
-
setEncounter
public VisionPrescription setEncounter(ResourceReferenceDt theValue)
Sets the value(s) for encounter ()Definition: A link to a resource that identifies the particular occurrence of contact between patient and health care provider.
-
getReason
public ca.uhn.fhir.model.api.IDatatype getReason()
Gets the value(s) for reason[x] (). creating it if it does not exist. Will not returnnull.Definition: Can be the reason or the indication for writing the prescription.
-
setReason
public VisionPrescription setReason(ca.uhn.fhir.model.api.IDatatype theValue)
Sets the value(s) for reason[x] ()Definition: Can be the reason or the indication for writing the prescription.
-
getDispense
public List<VisionPrescription.Dispense> getDispense()
Gets the value(s) for dispense (). creating it if it does not exist. Will not returnnull.Definition: Deals with details of the dispense part of the supply specification.
-
setDispense
public VisionPrescription setDispense(List<VisionPrescription.Dispense> theValue)
Sets the value(s) for dispense ()Definition: Deals with details of the dispense part of the supply specification.
-
addDispense
public VisionPrescription.Dispense addDispense()
Adds and returns a new value for dispense ()Definition: Deals with details of the dispense part of the supply specification.
-
addDispense
public VisionPrescription addDispense(VisionPrescription.Dispense theValue)
Adds a given new value for dispense ()Definition: Deals with details of the dispense part of the supply specification.
- Parameters:
theValue- The dispense to add (must not benull)
-
getDispenseFirstRep
public VisionPrescription.Dispense getDispenseFirstRep()
Gets the first repetition for dispense (), creating it if it does not already exist.Definition: Deals with details of the dispense part of the supply specification.
-
getResourceName
public String getResourceName()
- Specified by:
getResourceNamein interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
- Specified by:
getStructureFhirVersionEnumin interfaceorg.hl7.fhir.instance.model.api.IBaseResource- Specified by:
getStructureFhirVersionEnumin interfaceca.uhn.fhir.model.api.IResource
-
-