Class Flag

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 Flag extends DomainResource
Prospective warnings of potential issues when providing care to the patient.
See Also:
  • Field Details

    • identifier

      Identifier assigned to the flag for external use (outside the FHIR environment).
    • status

      Supports basic workflow.
    • category

      Allows an flag to be divided into different categories like clinical, administrative etc. Intended to be used as a means of filtering which flags are displayed to particular user or in a given context.
    • code

      protected CodeableConcept code
      The coded value or textual component of the flag to display to the user.
    • subject

      protected Reference subject
      The patient, location, group , organization , or practitioner, etc. this is about record this flag is associated with.
    • subjectTarget

      The actual object that is the target of the reference (The patient, location, group , organization , or practitioner, etc. this is about record this flag is associated with.)
    • period

      protected Period period
      The period of time from the activation of the flag to inactivation of the flag. If the flag is active, the end of the period should be unspecified.
    • encounter

      protected Reference encounter
      This alert is only relevant during the encounter.
    • encounterTarget

      The actual object that is the target of the reference (This alert is only relevant during the encounter.)
    • author

      protected Reference author
      The person, organization or device that created the flag.
    • authorTarget

      The actual object that is the target of the reference (The person, organization or device that created the flag.)
    • SP_DATE

      public static final String SP_DATE
      Search parameter: date

      Description: Time period when flag is active
      Type: date
      Path: Flag.period

      See Also:
    • DATE

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

      Description: Time period when flag is active
      Type: date
      Path: Flag.period

    • SP_IDENTIFIER

      public static final String SP_IDENTIFIER
      Search parameter: identifier

      Description: Business identifier
      Type: token
      Path: Flag.identifier

      See Also:
    • IDENTIFIER

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

      Description: Business identifier
      Type: token
      Path: Flag.identifier

    • SP_SUBJECT

      public static final String SP_SUBJECT
      Search parameter: subject

      Description: The identity of a subject to list flags for
      Type: reference
      Path: Flag.subject

      See Also:
    • SUBJECT

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

      Description: The identity of a subject to list flags for
      Type: reference
      Path: Flag.subject

    • INCLUDE_SUBJECT

      public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT
      Constant for fluent queries to be used to add include statements. Specifies the path value of "Flag:subject".
    • SP_PATIENT

      public static final String SP_PATIENT
      Search parameter: patient

      Description: The identity of a subject to list flags for
      Type: reference
      Path: Flag.subject

      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 subject to list flags for
      Type: reference
      Path: Flag.subject

    • 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 "Flag:patient".
    • SP_AUTHOR

      public static final String SP_AUTHOR
      Search parameter: author

      Description: Flag creator
      Type: reference
      Path: Flag.author

      See Also:
    • AUTHOR

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

      Description: Flag creator
      Type: reference
      Path: Flag.author

    • INCLUDE_AUTHOR

      public static final ca.uhn.fhir.model.api.Include INCLUDE_AUTHOR
      Constant for fluent queries to be used to add include statements. Specifies the path value of "Flag:author".
    • SP_ENCOUNTER

      public static final String SP_ENCOUNTER
      Search parameter: encounter

      Description: Alert relevant during encounter
      Type: reference
      Path: Flag.encounter

      See Also:
    • ENCOUNTER

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

      Description: Alert relevant during encounter
      Type: reference
      Path: Flag.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 "Flag:encounter".
  • Constructor Details

  • Method Details

    • getIdentifier

      Returns:
      identifier (Identifier assigned to the flag for external use (outside the FHIR environment).)
    • setIdentifier

      public Flag setIdentifier(List<Identifier> theIdentifier)
      Returns:
      Returns a reference to this for easy method chaining
    • hasIdentifier

      public boolean hasIdentifier()
    • addIdentifier

    • addIdentifier

    • getIdentifierFirstRep

      Returns:
      The first repetition of repeating field identifier, creating it if it does not already exist
    • getStatusElement

      Returns:
      status (Supports basic workflow.). 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

      Parameters:
      value - status (Supports basic workflow.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
    • getStatus

      Returns:
      Supports basic workflow.
    • setStatus

      public Flag setStatus(Flag.FlagStatus value)
      Parameters:
      value - Supports basic workflow.
    • getCategory

      Returns:
      category (Allows an flag to be divided into different categories like clinical, administrative etc. Intended to be used as a means of filtering which flags are displayed to particular user or in a given context.)
    • hasCategory

      public boolean hasCategory()
    • setCategory

      Parameters:
      value - category (Allows an flag to be divided into different categories like clinical, administrative etc. Intended to be used as a means of filtering which flags are displayed to particular user or in a given context.)
    • getCode

      Returns:
      code (The coded value or textual component of the flag to display to the user.)
    • hasCode

      public boolean hasCode()
    • setCode

      public Flag setCode(CodeableConcept value)
      Parameters:
      value - code (The coded value or textual component of the flag to display to the user.)
    • getSubject

      Returns:
      subject (The patient, location, group , organization , or practitioner, etc. this is about record this flag is associated with.)
    • hasSubject

      public boolean hasSubject()
    • setSubject

      public Flag setSubject(Reference value)
      Parameters:
      value - subject (The patient, location, group , organization , or practitioner, etc. this is about record this flag is associated with.)
    • getSubjectTarget

      Returns:
      subject The 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 patient, location, group , organization , or practitioner, etc. this is about record this flag is associated with.)
    • setSubjectTarget

      public Flag setSubjectTarget(Resource value)
      Parameters:
      value - subject The 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 patient, location, group , organization , or practitioner, etc. this is about record this flag is associated with.)
    • getPeriod

      public Period getPeriod()
      Returns:
      period (The period of time from the activation of the flag to inactivation of the flag. If the flag is active, the end of the period should be unspecified.)
    • hasPeriod

      public boolean hasPeriod()
    • setPeriod

      public Flag setPeriod(Period value)
      Parameters:
      value - period (The period of time from the activation of the flag to inactivation of the flag. If the flag is active, the end of the period should be unspecified.)
    • getEncounter

      Returns:
      encounter (This alert is only relevant during the encounter.)
    • hasEncounter

      public boolean hasEncounter()
    • setEncounter

      public Flag setEncounter(Reference value)
      Parameters:
      value - encounter (This alert is only relevant during the encounter.)
    • getEncounterTarget

      Returns:
      encounter The 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. (This alert is only relevant during the encounter.)
    • setEncounterTarget

      Parameters:
      value - encounter The 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. (This alert is only relevant during the encounter.)
    • getAuthor

      public Reference getAuthor()
      Returns:
      author (The person, organization or device that created the flag.)
    • hasAuthor

      public boolean hasAuthor()
    • setAuthor

      public Flag setAuthor(Reference value)
      Parameters:
      value - author (The person, organization or device that created the flag.)
    • getAuthorTarget

      Returns:
      author The 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 person, organization or device that created the flag.)
    • setAuthorTarget

      public Flag setAuthorTarget(Resource value)
      Parameters:
      value - author The 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 person, organization or device that created the flag.)
    • listChildren

      protected void listChildren(List<Property> children)
      Overrides:
      listChildren in class DomainResource
    • getNamedProperty

      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getNamedProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getProperty

      public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty

      public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • setProperty

      public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • makeProperty

      public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      makeProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • getTypesForProperty

      public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      getTypesForProperty in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • addChild

      public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      addChild in class DomainResource
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • fhirType

      public String fhirType()
      Specified by:
      fhirType in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      fhirType in class DomainResource
    • copy

      public Flag copy()
      Specified by:
      copy in class DomainResource
    • typedCopy

      protected Flag typedCopy()
    • equalsDeep

      public boolean equalsDeep(Base other_)
      Overrides:
      equalsDeep in class DomainResource
    • equalsShallow

      public boolean equalsShallow(Base other_)
      Overrides:
      equalsShallow in class DomainResource
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      isEmpty in class DomainResource
    • getResourceType

      Specified by:
      getResourceType in class Resource