Package org.hl7.fhir.dstu2.model
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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFlag.FlagStatusstatic classFlag.FlagStatusEnumFactory
-
Field Summary
Fields Modifier and Type Field Description protected ReferenceauthorThe person, organization or device that created the flag.protected ResourceauthorTargetThe actual object that is the target of the reference (The person, organization or device that created the flag.)protected CodeableConceptcategoryAllows an flag to be divided into different categories like clinical, administrative etc.protected CodeableConceptcodeThe coded value or textual component of the flag to display to the user.protected ReferenceencounterThis alert is only relevant during the encounter.protected EncounterencounterTargetThe actual object that is the target of the reference (This alert is only relevant during the encounter.)protected List<Identifier>identifierIdentifier assigned to the flag for external use (outside the FHIR environment).protected PeriodperiodThe period of time from the activation of the flag to inactivation of the flag.static StringSP_AUTHORstatic StringSP_DATEstatic StringSP_ENCOUNTERstatic StringSP_PATIENTstatic StringSP_SUBJECTprotected Enumeration<Flag.FlagStatus>statusSupports basic workflow.protected ReferencesubjectThe patient, location, group , organization , or practitioner this is about record this flag is associated with.protected ResourcesubjectTargetThe actual object that is the target of the reference (The patient, location, group , organization , or practitioner this is about record this flag is associated with.)-
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 Flag()Flag(Enumeration<Flag.FlagStatus> status, Reference subject, CodeableConcept code)
-
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
Identifier assigned to the flag for external use (outside the FHIR environment).
-
category
protected CodeableConcept 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.
-
status
protected Enumeration<Flag.FlagStatus> status
Supports basic workflow.
-
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.
-
subject
protected Reference subject
The patient, location, group , organization , or practitioner this is about record this flag is associated with.
-
subjectTarget
protected Resource subjectTarget
The actual object that is the target of the reference (The patient, location, group , organization , or practitioner this is about record this flag is associated with.)
-
encounterTarget
protected Encounter encounterTarget
The actual object that is the target of the reference (This alert is only relevant during the encounter.)
-
authorTarget
protected Resource authorTarget
The actual object that is the target of the reference (The person, organization or device that created the flag.)
-
code
protected CodeableConcept code
The coded value or textual component of the flag to display to the user.
-
SP_DATE
public static final String SP_DATE
- See Also:
- Constant Field Values
-
SP_SUBJECT
public static final String SP_SUBJECT
- See Also:
- Constant Field Values
-
SP_PATIENT
public static final String SP_PATIENT
- See Also:
- Constant Field Values
-
SP_AUTHOR
public static final String SP_AUTHOR
- See Also:
- Constant Field Values
-
SP_ENCOUNTER
public static final String SP_ENCOUNTER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Flag
public Flag()
-
Flag
public Flag(Enumeration<Flag.FlagStatus> status, Reference subject, CodeableConcept code)
-
-
Method Detail
-
getIdentifier
public List<Identifier> getIdentifier()
- Returns:
identifier(Identifier assigned to the flag for external use (outside the FHIR environment).)
-
hasIdentifier
public boolean hasIdentifier()
-
addIdentifier
public Identifier addIdentifier()
- Returns:
identifier(Identifier assigned to the flag for external use (outside the FHIR environment).)
-
addIdentifier
public Flag addIdentifier(Identifier t)
-
getCategory
public CodeableConcept 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
public Flag setCategory(CodeableConcept value)
- 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.)
-
getStatusElement
public Enumeration<Flag.FlagStatus> 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
public Flag setStatusElement(Enumeration<Flag.FlagStatus> value)
- 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
public Flag.FlagStatus getStatus()
- Returns:
- Supports basic workflow.
-
setStatus
public Flag setStatus(Flag.FlagStatus value)
- Parameters:
value- Supports basic workflow.
-
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.)
-
getSubject
public Reference getSubject()
- Returns:
subject(The patient, location, group , organization , or practitioner 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 this is about record this flag is associated with.)
-
getSubjectTarget
public Resource getSubjectTarget()
- Returns:
subjectThe 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 this is about record this flag is associated with.)
-
setSubjectTarget
public Flag setSubjectTarget(Resource value)
- Parameters:
value-subjectThe 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 this is about record this flag is associated with.)
-
getEncounter
public Reference 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
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. (This alert is only relevant during the encounter.)
-
setEncounterTarget
public Flag 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. (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
public Resource getAuthorTarget()
- Returns:
authorThe 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-authorThe 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.)
-
getCode
public CodeableConcept 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.)
-
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 Flag copy()
- Specified by:
copyin classDomainResource
-
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
-
-