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:
  • Field Details

    • SP_DATEWRITTEN

      public static final String SP_DATEWRITTEN
      Search parameter constant for datewritten

      Description: Return prescriptions written on this date
      Type: date
      Path: VisionPrescription.dateWritten

      See Also:
    • DATEWRITTEN

      public static final ca.uhn.fhir.rest.gclient.DateClientParam DATEWRITTEN
      Fluent Client search parameter constant for datewritten

      Description: Return prescriptions written on this date
      Type: date
      Path: VisionPrescription.dateWritten

    • SP_ENCOUNTER

      public static final String SP_ENCOUNTER
      Search parameter constant for encounter

      Description: Return prescriptions with this encounter identifier
      Type: reference
      Path: VisionPrescription.encounter

      See Also:
    • ENCOUNTER

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER
      Fluent Client search parameter constant for encounter

      Description: Return prescriptions with this encounter identifier
      Type: reference
      Path: VisionPrescription.encounter

    • SP_IDENTIFIER

      public static final String SP_IDENTIFIER
      Search parameter constant for identifier

      Description: Return prescriptions with this external identifier
      Type: token
      Path: VisionPrescription.identifier

      See Also:
    • IDENTIFIER

      public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
      Fluent Client search parameter constant for identifier

      Description: Return prescriptions with this external identifier
      Type: token
      Path: VisionPrescription.identifier

    • SP_PATIENT

      public static final String SP_PATIENT
      Search parameter constant for patient

      Description: The identity of a patient to list dispenses for
      Type: reference
      Path: VisionPrescription.patient

      See Also:
    • PATIENT

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
      Fluent Client search parameter constant for patient

      Description: 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 prescriber

      Description:
      Type: reference
      Path: VisionPrescription.prescriber

      See Also:
    • PRESCRIBER

      public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PRESCRIBER
      Fluent Client search parameter constant for prescriber

      Description:
      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 Details

  • Method Details

    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
    • getAllPopulatedChildElementsOfType

      public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
      Specified by:
      getAllPopulatedChildElementsOfType in interface ca.uhn.fhir.model.api.ICompositeElement
    • getIdentifier

      Gets the value(s) for identifier (). creating it if it does not exist. Will not return null.

      Definition: Business identifier which may be used by other parties to reference or identify the prescription.

    • setIdentifier

      Sets the value(s) for identifier ()

      Definition: Business identifier which may be used by other parties to reference or identify the prescription.

    • 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

      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 be null)
    • 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 return null.

      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 return null.

      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

    • setDateWrittenWithSecondsPrecision

      Sets the value 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

    • getPatient

      Gets the value(s) for patient (). creating it if it does not exist. Will not return null.

      Definition: A link to a resource representing the person to whom the vision products will be supplied.

    • setPatient

      Sets the value(s) for patient ()

      Definition: A link to a resource representing the person to whom the vision products will be supplied.

    • getPrescriber

      Gets the value(s) for prescriber (). creating it if it does not exist. Will not return null.

      Definition: The healthcare professional responsible for authorizing the prescription

    • setPrescriber

      Sets the value(s) for prescriber ()

      Definition: The healthcare professional responsible for authorizing the prescription

    • getEncounter

      Gets the value(s) for encounter (). creating it if it does not exist. Will not return null.

      Definition: A link to a resource that identifies the particular occurrence of contact between patient and health care provider.

    • setEncounter

      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 return null.

      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

      Gets the value(s) for dispense (). creating it if it does not exist. Will not return null.

      Definition: Deals with details of the dispense part of the supply specification.

    • setDispense

      Sets the value(s) for dispense ()

      Definition: Deals with details of the dispense part of the supply specification.

    • addDispense

      Adds and returns a new value for dispense ()

      Definition: Deals with details of the dispense part of the supply specification.

    • addDispense

      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 be null)
    • 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

      Specified by:
      getResourceName in interface ca.uhn.fhir.model.api.IResource
    • getStructureFhirVersionEnum

      public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
      Specified by:
      getStructureFhirVersionEnum in interface org.hl7.fhir.instance.model.api.IBaseResource
      Specified by:
      getStructureFhirVersionEnum in interface ca.uhn.fhir.model.api.IResource