Package org.hl7.fhir.dstu2.model
Class VisionPrescription
- java.lang.Object
-
- org.hl7.fhir.dstu2.model.Base
-
- org.hl7.fhir.dstu2.model.BaseResource
-
- org.hl7.fhir.dstu2.model.Resource
-
- org.hl7.fhir.dstu2.model.DomainResource
-
- org.hl7.fhir.dstu2.model.VisionPrescription
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IAnyResource,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions,org.hl7.fhir.instance.model.api.IBaseResource,org.hl7.fhir.instance.model.api.IDomainResource
public class VisionPrescription extends DomainResource
An authorization for the supply of glasses and/or contact lenses to a patient.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVisionPrescription.VisionBasestatic classVisionPrescription.VisionBaseEnumFactorystatic classVisionPrescription.VisionEyesstatic classVisionPrescription.VisionEyesEnumFactorystatic classVisionPrescription.VisionPrescriptionDispenseComponent
-
Field Summary
Fields Modifier and Type Field Description protected DateTimeTypedateWrittenThe date (and perhaps time) when the prescription was written.protected List<VisionPrescription.VisionPrescriptionDispenseComponent>dispenseDeals with details of the dispense part of the supply specification.protected ReferenceencounterA link to a resource that identifies the particular occurrence of contact between patient and health care provider.protected EncounterencounterTargetThe actual object that is the target of the reference (A link to a resource that identifies the particular occurrence of contact between patient and health care provider.)protected List<Identifier>identifierBusiness identifier which may be used by other parties to reference or identify the prescription.protected ReferencepatientA link to a resource representing the person to whom the vision products will be supplied.protected PatientpatientTargetThe actual object that is the target of the reference (A link to a resource representing the person to whom the vision products will be supplied.)protected ReferenceprescriberThe healthcare professional responsible for authorizing the prescription.protected PractitionerprescriberTargetThe actual object that is the target of the reference (The healthcare professional responsible for authorizing the prescription.)protected TypereasonCan be the reason or the indication for writing the prescription.static StringSP_DATEWRITTENstatic StringSP_ENCOUNTERstatic StringSP_IDENTIFIERstatic StringSP_PATIENTstatic StringSP_PRESCRIBER-
Fields inherited from class org.hl7.fhir.dstu2.model.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.dstu2.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description VisionPrescription()
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getModifierExtension, getText, hasContained, hasExtension, hasModifierExtension, hasText, setText
-
Methods inherited from class org.hl7.fhir.dstu2.model.Resource
copyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.dstu2.model.BaseResource
getStructureFhirVersionEnum, setId
-
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
-
-
-
-
Field Detail
-
identifier
protected List<Identifier> identifier
Business identifier which may be used by other parties to reference or identify the prescription.
-
dateWritten
protected DateTimeType dateWritten
The date (and perhaps time) when the prescription was written.
-
patient
protected Reference patient
A link to a resource representing the person to whom the vision products will be supplied.
-
patientTarget
protected Patient patientTarget
The actual object that is the target of the reference (A link to a resource representing the person to whom the vision products will be supplied.)
-
prescriber
protected Reference prescriber
The healthcare professional responsible for authorizing the prescription.
-
prescriberTarget
protected Practitioner prescriberTarget
The actual object that is the target of the reference (The healthcare professional responsible for authorizing the prescription.)
-
encounter
protected Reference encounter
A link to a resource that identifies the particular occurrence of contact between patient and health care provider.
-
encounterTarget
protected Encounter encounterTarget
The actual object that is the target of the reference (A link to a resource that identifies the particular occurrence of contact between patient and health care provider.)
-
dispense
protected List<VisionPrescription.VisionPrescriptionDispenseComponent> dispense
Deals with details of the dispense part of the supply specification.
-
SP_PRESCRIBER
public static final String SP_PRESCRIBER
- See Also:
- Constant Field Values
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
- See Also:
- Constant Field Values
-
SP_PATIENT
public static final String SP_PATIENT
- See Also:
- Constant Field Values
-
SP_DATEWRITTEN
public static final String SP_DATEWRITTEN
- See Also:
- Constant Field Values
-
SP_ENCOUNTER
public static final String SP_ENCOUNTER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VisionPrescription
public VisionPrescription()
-
-
Method Detail
-
getIdentifier
public List<Identifier> getIdentifier()
- Returns:
identifier(Business identifier which may be used by other parties to reference or identify the prescription.)
-
hasIdentifier
public boolean hasIdentifier()
-
addIdentifier
public Identifier addIdentifier()
- Returns:
identifier(Business identifier which may be used by other parties to reference or identify the prescription.)
-
addIdentifier
public VisionPrescription addIdentifier(Identifier t)
-
getDateWrittenElement
public DateTimeType getDateWrittenElement()
- Returns:
dateWritten(The date (and perhaps time) when the prescription was written.). This is the underlying object with id, value and extensions. The accessor "getDateWritten" gives direct access to the value
-
hasDateWrittenElement
public boolean hasDateWrittenElement()
-
hasDateWritten
public boolean hasDateWritten()
-
setDateWrittenElement
public VisionPrescription setDateWrittenElement(DateTimeType value)
- Parameters:
value-dateWritten(The date (and perhaps time) when the prescription was written.). This is the underlying object with id, value and extensions. The accessor "getDateWritten" gives direct access to the value
-
getDateWritten
public Date getDateWritten()
- Returns:
- The date (and perhaps time) when the prescription was written.
-
setDateWritten
public VisionPrescription setDateWritten(Date value)
- Parameters:
value- The date (and perhaps time) when the prescription was written.
-
getPatient
public Reference getPatient()
- Returns:
patient(A link to a resource representing the person to whom the vision products will be supplied.)
-
hasPatient
public boolean hasPatient()
-
setPatient
public VisionPrescription setPatient(Reference value)
- Parameters:
value-patient(A link to a resource representing the person to whom the vision products will be supplied.)
-
getPatientTarget
public Patient getPatientTarget()
- Returns:
patientThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (A link to a resource representing the person to whom the vision products will be supplied.)
-
setPatientTarget
public VisionPrescription setPatientTarget(Patient value)
- Parameters:
value-patientThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (A link to a resource representing the person to whom the vision products will be supplied.)
-
getPrescriber
public Reference getPrescriber()
- Returns:
prescriber(The healthcare professional responsible for authorizing the prescription.)
-
hasPrescriber
public boolean hasPrescriber()
-
setPrescriber
public VisionPrescription setPrescriber(Reference value)
- Parameters:
value-prescriber(The healthcare professional responsible for authorizing the prescription.)
-
getPrescriberTarget
public Practitioner getPrescriberTarget()
- Returns:
prescriberThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The healthcare professional responsible for authorizing the prescription.)
-
setPrescriberTarget
public VisionPrescription setPrescriberTarget(Practitioner value)
- Parameters:
value-prescriberThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The healthcare professional responsible for authorizing the prescription.)
-
getEncounter
public Reference getEncounter()
- Returns:
encounter(A link to a resource that identifies the particular occurrence of contact between patient and health care provider.)
-
hasEncounter
public boolean hasEncounter()
-
setEncounter
public VisionPrescription setEncounter(Reference value)
- Parameters:
value-encounter(A link to a resource that identifies the particular occurrence of contact between patient and health care provider.)
-
getEncounterTarget
public Encounter getEncounterTarget()
- Returns:
encounterThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (A link to a resource that identifies the particular occurrence of contact between patient and health care provider.)
-
setEncounterTarget
public VisionPrescription setEncounterTarget(Encounter value)
- Parameters:
value-encounterThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (A link to a resource that identifies the particular occurrence of contact between patient and health care provider.)
-
getReason
public Type getReason()
- Returns:
reason(Can be the reason or the indication for writing the prescription.)
-
getReasonCodeableConcept
public CodeableConcept getReasonCodeableConcept() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
reason(Can be the reason or the indication for writing the prescription.)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasReasonCodeableConcept
public boolean hasReasonCodeableConcept()
-
getReasonReference
public Reference getReasonReference() throws org.hl7.fhir.exceptions.FHIRException
- Returns:
reason(Can be the reason or the indication for writing the prescription.)- Throws:
org.hl7.fhir.exceptions.FHIRException
-
hasReasonReference
public boolean hasReasonReference()
-
hasReason
public boolean hasReason()
-
setReason
public VisionPrescription setReason(Type value)
- Parameters:
value-reason(Can be the reason or the indication for writing the prescription.)
-
getDispense
public List<VisionPrescription.VisionPrescriptionDispenseComponent> getDispense()
- Returns:
dispense(Deals with details of the dispense part of the supply specification.)
-
hasDispense
public boolean hasDispense()
-
addDispense
public VisionPrescription.VisionPrescriptionDispenseComponent addDispense()
- Returns:
dispense(Deals with details of the dispense part of the supply specification.)
-
addDispense
public VisionPrescription addDispense(VisionPrescription.VisionPrescriptionDispenseComponent t)
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classDomainResource
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
public String fhirType()
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
public VisionPrescription copy()
- Specified by:
copyin classDomainResource
-
typedCopy
protected VisionPrescription typedCopy()
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
-