Class VisionPrescription
- java.lang.Object
-
- org.hl7.fhir.r4.model.Base
-
- org.hl7.fhir.r4.model.BaseResource
-
- org.hl7.fhir.r4.model.Resource
-
- org.hl7.fhir.r4.model.DomainResource
-
- org.hl7.fhir.r4.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 provision 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.PrismComponentstatic classVisionPrescription.VisionBasestatic classVisionPrescription.VisionBaseEnumFactorystatic classVisionPrescription.VisionEyesstatic classVisionPrescription.VisionEyesEnumFactorystatic classVisionPrescription.VisionPrescriptionLensSpecificationComponentstatic classVisionPrescription.VisionStatusstatic classVisionPrescription.VisionStatusEnumFactory
-
Field Summary
Fields Modifier and Type Field Description protected DateTimeTypecreatedThe date this resource was created.protected DateTimeTypedateWrittenThe date (and perhaps time) when the prescription was written.static ca.uhn.fhir.rest.gclient.DateClientParamDATEWRITTENFluent Client search parameter constant for datewrittenprotected ReferenceencounterA reference to a resource that identifies the particular occurrence of contact between patient and health care provider during which the prescription was issued.static ca.uhn.fhir.rest.gclient.ReferenceClientParamENCOUNTERFluent Client search parameter constant for encounterprotected EncounterencounterTargetThe actual object that is the target of the reference (A reference to a resource that identifies the particular occurrence of contact between patient and health care provider during which the prescription was issued.)protected List<Identifier>identifierA unique identifier assigned to this vision prescription.static 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.protected List<VisionPrescription.VisionPrescriptionLensSpecificationComponent>lensSpecificationContain the details of the individual lens specifications and serves as the authorization for the fullfillment by certified professionals.protected ReferencepatientA resource reference to the person to whom the vision prescription applies.static ca.uhn.fhir.rest.gclient.ReferenceClientParamPATIENTFluent Client search parameter constant for patientprotected PatientpatientTargetThe actual object that is the target of the reference (A resource reference to the person to whom the vision prescription applies.)protected ReferenceprescriberThe healthcare professional responsible for authorizing the prescription.static ca.uhn.fhir.rest.gclient.ReferenceClientParamPRESCRIBERFluent Client search parameter constant for prescriberprotected ResourceprescriberTargetThe actual object that is the target of the reference (The healthcare professional responsible for authorizing the prescription.)static StringSP_DATEWRITTENSearch parameter: datewrittenstatic StringSP_ENCOUNTERSearch parameter: encounterstatic StringSP_IDENTIFIERSearch parameter: identifierstatic StringSP_PATIENTSearch parameter: patientstatic StringSP_PRESCRIBERSearch parameter: prescriberstatic StringSP_STATUSSearch parameter: statusprotected Enumeration<VisionPrescription.VisionStatus>statusThe status of the resource instance.static ca.uhn.fhir.rest.gclient.TokenClientParamSTATUSFluent Client search parameter constant for status-
Fields inherited from class org.hl7.fhir.r4.model.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.r4.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description VisionPrescription()ConstructorVisionPrescription(Enumeration<VisionPrescription.VisionStatus> status, DateTimeType created, Reference patient, DateTimeType dateWritten, Reference prescriber)Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.r4.model.DomainResource
addContained, addExtension, addExtension, addExtension, addModifierExtension, addModifierExtension, checkNoModifiers, copyValues, getContained, getExtension, getExtensionByUrl, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getText, hasContained, hasExtension, hasExtension, hasModifierExtension, hasText, setContained, setExtension, setModifierExtension, setText
-
Methods inherited from class org.hl7.fhir.r4.model.Resource
copyValues, getId, getIdBase, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.r4.model.BaseResource
getStructureFhirVersionEnum, isResource, setId
-
Methods inherited from class org.hl7.fhir.r4.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, listChildrenByName, 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
A unique identifier assigned to this vision prescription.
-
status
protected Enumeration<VisionPrescription.VisionStatus> status
The status of the resource instance.
-
created
protected DateTimeType created
The date this resource was created.
-
patient
protected Reference patient
A resource reference to the person to whom the vision prescription applies.
-
patientTarget
protected Patient patientTarget
The actual object that is the target of the reference (A resource reference to the person to whom the vision prescription applies.)
-
encounter
protected Reference encounter
A reference to a resource that identifies the particular occurrence of contact between patient and health care provider during which the prescription was issued.
-
encounterTarget
protected Encounter encounterTarget
The actual object that is the target of the reference (A reference to a resource that identifies the particular occurrence of contact between patient and health care provider during which the prescription was issued.)
-
dateWritten
protected DateTimeType dateWritten
The date (and perhaps time) when the prescription was written.
-
prescriber
protected Reference prescriber
The healthcare professional responsible for authorizing the prescription.
-
prescriberTarget
protected Resource prescriberTarget
The actual object that is the target of the reference (The healthcare professional responsible for authorizing the prescription.)
-
lensSpecification
protected List<VisionPrescription.VisionPrescriptionLensSpecificationComponent> lensSpecification
Contain the details of the individual lens specifications and serves as the authorization for the fullfillment by certified professionals.
-
SP_PRESCRIBER
public static final String SP_PRESCRIBER
Search parameter: prescriberDescription: Who authorized the vision prescription
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: Who authorized the vision prescription
Type: reference
Path: VisionPrescription.prescriber
-
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".
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter: 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: 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
-
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".
-
SP_DATEWRITTEN
public static final String SP_DATEWRITTEN
Search parameter: 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: 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
-
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".
-
SP_STATUS
public static final String SP_STATUS
Search parameter: statusDescription: The status of the vision prescription
Type: token
Path: VisionPrescription.status
- See Also:
- Constant Field Values
-
STATUS
public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
Fluent Client search parameter constant for statusDescription: The status of the vision prescription
Type: token
Path: VisionPrescription.status
-
-
Constructor Detail
-
VisionPrescription
public VisionPrescription()
Constructor
-
VisionPrescription
public VisionPrescription(Enumeration<VisionPrescription.VisionStatus> status, DateTimeType created, Reference patient, DateTimeType dateWritten, Reference prescriber)
Constructor
-
-
Method Detail
-
getIdentifier
public List<Identifier> getIdentifier()
- Returns:
identifier(A unique identifier assigned to this vision prescription.)
-
setIdentifier
public VisionPrescription setIdentifier(List<Identifier> theIdentifier)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasIdentifier
public boolean hasIdentifier()
-
addIdentifier
public Identifier addIdentifier()
-
addIdentifier
public VisionPrescription addIdentifier(Identifier t)
-
getIdentifierFirstRep
public Identifier getIdentifierFirstRep()
- Returns:
- The first repetition of repeating field
identifier, creating it if it does not already exist
-
getStatusElement
public Enumeration<VisionPrescription.VisionStatus> getStatusElement()
- Returns:
status(The status of the resource instance.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
hasStatusElement
public boolean hasStatusElement()
-
hasStatus
public boolean hasStatus()
-
setStatusElement
public VisionPrescription setStatusElement(Enumeration<VisionPrescription.VisionStatus> value)
- Parameters:
value-status(The status of the resource instance.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
getStatus
public VisionPrescription.VisionStatus getStatus()
- Returns:
- The status of the resource instance.
-
setStatus
public VisionPrescription setStatus(VisionPrescription.VisionStatus value)
- Parameters:
value- The status of the resource instance.
-
getCreatedElement
public DateTimeType getCreatedElement()
- Returns:
created(The date this resource was created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value
-
hasCreatedElement
public boolean hasCreatedElement()
-
hasCreated
public boolean hasCreated()
-
setCreatedElement
public VisionPrescription setCreatedElement(DateTimeType value)
- Parameters:
value-created(The date this resource was created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value
-
getCreated
public Date getCreated()
- Returns:
- The date this resource was created.
-
setCreated
public VisionPrescription setCreated(Date value)
- Parameters:
value- The date this resource was created.
-
getPatient
public Reference getPatient()
- Returns:
patient(A resource reference to the person to whom the vision prescription applies.)
-
hasPatient
public boolean hasPatient()
-
setPatient
public VisionPrescription setPatient(Reference value)
- Parameters:
value-patient(A resource reference to the person to whom the vision prescription applies.)
-
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 resource reference to the person to whom the vision prescription applies.)
-
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 resource reference to the person to whom the vision prescription applies.)
-
getEncounter
public Reference getEncounter()
- Returns:
encounter(A reference to a resource that identifies the particular occurrence of contact between patient and health care provider during which the prescription was issued.)
-
hasEncounter
public boolean hasEncounter()
-
setEncounter
public VisionPrescription setEncounter(Reference value)
- Parameters:
value-encounter(A reference to a resource that identifies the particular occurrence of contact between patient and health care provider during which the prescription was issued.)
-
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 reference to a resource that identifies the particular occurrence of contact between patient and health care provider during which the prescription was issued.)
-
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 reference to a resource that identifies the particular occurrence of contact between patient and health care provider during which the prescription was issued.)
-
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.
-
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 Resource 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(Resource 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.)
-
getLensSpecification
public List<VisionPrescription.VisionPrescriptionLensSpecificationComponent> getLensSpecification()
- Returns:
lensSpecification(Contain the details of the individual lens specifications and serves as the authorization for the fullfillment by certified professionals.)
-
setLensSpecification
public VisionPrescription setLensSpecification(List<VisionPrescription.VisionPrescriptionLensSpecificationComponent> theLensSpecification)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasLensSpecification
public boolean hasLensSpecification()
-
addLensSpecification
public VisionPrescription.VisionPrescriptionLensSpecificationComponent addLensSpecification()
-
addLensSpecification
public VisionPrescription addLensSpecification(VisionPrescription.VisionPrescriptionLensSpecificationComponent t)
-
getLensSpecificationFirstRep
public VisionPrescription.VisionPrescriptionLensSpecificationComponent getLensSpecificationFirstRep()
- Returns:
- The first repetition of repeating field
lensSpecification, creating it if it does not already exist
-
listChildren
protected void listChildren(List<Property> children)
- Overrides:
listChildrenin classDomainResource
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getNamedPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
makePropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getTypesForPropertyin 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
-
copyValues
public void copyValues(VisionPrescription dst)
-
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
-
-