Class ListResource
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.dstu2.resource.BaseResource
-
- ca.uhn.fhir.model.dstu2.resource.ListResource
-
- 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 ListResource extends BaseResource implements ca.uhn.fhir.model.api.IResource
HAPI/FHIR List Resource (infrastructure.documents)Definition: A set of information summarized from a list of other resources.
Requirements:
Profile Definition: http://hl7.org/fhir/profiles/List
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classListResource.EntryBlock class for child element: List.entry ()
-
Field Summary
Fields Modifier and Type Field Description static ca.uhn.fhir.rest.gclient.TokenClientParamCODEFluent Client search parameter constant for codestatic ca.uhn.fhir.rest.gclient.DateClientParamDATEFluent Client search parameter constant for datestatic ca.uhn.fhir.rest.gclient.TokenClientParamEMPTY_REASONFluent Client search parameter constant for empty-reasonstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamENCOUNTERFluent Client search parameter constant for encounterstatic ca.uhn.fhir.model.api.IncludeINCLUDE_ENCOUNTERConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_ITEMConstant 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_SOURCEConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.model.api.IncludeINCLUDE_SUBJECTConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.rest.gclient.ReferenceClientParamITEMFluent Client search parameter constant for itemstatic ca.uhn.fhir.rest.gclient.StringClientParamNOTESFluent Client search parameter constant for notesstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamPATIENTFluent Client search parameter constant for patientstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamSOURCEFluent Client search parameter constant for sourcestatic StringSP_CODESearch parameter constant for codestatic StringSP_DATESearch parameter constant for datestatic StringSP_EMPTY_REASONSearch parameter constant for empty-reasonstatic StringSP_ENCOUNTERSearch parameter constant for encounterstatic StringSP_ITEMSearch parameter constant for itemstatic StringSP_NOTESSearch parameter constant for notesstatic StringSP_PATIENTSearch parameter constant for patientstatic StringSP_SOURCESearch parameter constant for sourcestatic StringSP_STATUSSearch parameter constant for statusstatic StringSP_SUBJECTSearch parameter constant for subjectstatic StringSP_TITLESearch parameter constant for titlestatic ca.uhn.fhir.rest.gclient.TokenClientParamSTATUSFluent Client search parameter constant for statusstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamSUBJECTFluent Client search parameter constant for subjectstatic ca.uhn.fhir.rest.gclient.StringClientParamTITLEFluent Client search parameter constant for title-
Fields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID, SP_RES_LANGUAGE
-
-
Constructor Summary
Constructors Constructor Description ListResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListResource.EntryaddEntry()Adds and returns a new value for entry ()ListResourceaddEntry(ListResource.Entry theValue)Adds a given new value for entry ()IdentifierDtaddIdentifier()Adds and returns a new value for identifier (id)ListResourceaddIdentifier(IdentifierDt theValue)Adds a given new value for identifier (id)<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)CodeableConceptDtgetCode()Gets the value(s) for code (what).DategetDate()Gets the value(s) for date (when.recorded).ca.uhn.fhir.model.primitive.DateTimeDtgetDateElement()Gets the value(s) for date (when.recorded).CodeableConceptDtgetEmptyReason()Gets the value(s) for emptyReason ().ResourceReferenceDtgetEncounter()Gets the value(s) for encounter (context).List<ListResource.Entry>getEntry()Gets the value(s) for entry ().ListResource.EntrygetEntryFirstRep()Gets the first repetition for entry (), creating it if it does not already exist.List<IdentifierDt>getIdentifier()Gets the value(s) for identifier (id).IdentifierDtgetIdentifierFirstRep()Gets the first repetition for identifier (id), creating it if it does not already exist.StringgetMode()Gets the value(s) for mode (class).ca.uhn.fhir.model.primitive.BoundCodeDt<ListModeEnum>getModeElement()Gets the value(s) for mode (class).StringgetNote()Gets the value(s) for note ().ca.uhn.fhir.model.primitive.StringDtgetNoteElement()Gets the value(s) for note ().BoundCodeableConceptDt<ListOrderCodesEnum>getOrderedBy()Gets the value(s) for orderedBy ().StringgetResourceName()ResourceReferenceDtgetSource()Gets the value(s) for source (who.author).StringgetStatus()Gets the value(s) for status (status).ca.uhn.fhir.model.primitive.BoundCodeDt<ListStatusEnum>getStatusElement()Gets the value(s) for status (status).ca.uhn.fhir.context.FhirVersionEnumgetStructureFhirVersionEnum()ResourceReferenceDtgetSubject()Gets the value(s) for subject (who.focus).StringgetTitle()Gets the value(s) for title ().ca.uhn.fhir.model.primitive.StringDtgetTitleElement()Gets the value(s) for title ().booleanisEmpty()ListResourcesetCode(CodeableConceptDt theValue)Sets the value(s) for code (what)ListResourcesetDate(ca.uhn.fhir.model.primitive.DateTimeDt theValue)Sets the value(s) for date (when.recorded)ListResourcesetDate(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)Sets the value for date (when.recorded)ListResourcesetDateWithSecondsPrecision(Date theDate)Sets the value for date (when.recorded)ListResourcesetEmptyReason(CodeableConceptDt theValue)Sets the value(s) for emptyReason ()ListResourcesetEncounter(ResourceReferenceDt theValue)Sets the value(s) for encounter (context)ListResourcesetEntry(List<ListResource.Entry> theValue)Sets the value(s) for entry ()ListResourcesetIdentifier(List<IdentifierDt> theValue)Sets the value(s) for identifier (id)ListResourcesetMode(ListModeEnum theValue)Sets the value(s) for mode (class)ListResourcesetMode(ca.uhn.fhir.model.primitive.BoundCodeDt<ListModeEnum> theValue)Sets the value(s) for mode (class)ListResourcesetNote(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for note ()ListResourcesetNote(String theString)Sets the value for note ()ListResourcesetOrderedBy(BoundCodeableConceptDt<ListOrderCodesEnum> theValue)Sets the value(s) for orderedBy ()ListResourcesetOrderedBy(ListOrderCodesEnum theValue)Sets the value(s) for orderedBy ()ListResourcesetSource(ResourceReferenceDt theValue)Sets the value(s) for source (who.author)ListResourcesetStatus(ListStatusEnum theValue)Sets the value(s) for status (status)ListResourcesetStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<ListStatusEnum> theValue)Sets the value(s) for status (status)ListResourcesetSubject(ResourceReferenceDt theValue)Sets the value(s) for subject (who.focus)ListResourcesetTitle(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for title ()ListResourcesetTitle(String theString)Sets the value for title ()-
Methods inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
getContained, getId, getIdElement, getLanguage, getMeta, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toString
-
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, setUserData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
-
-
-
Field Detail
-
SP_SOURCE
public static final String SP_SOURCE
Search parameter constant for sourceDescription:
Type: reference
Path: List.source
- See Also:
- Constant Field Values
-
SOURCE
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SOURCE
Fluent Client search parameter constant for sourceDescription:
Type: reference
Path: List.source
-
SP_ITEM
public static final String SP_ITEM
Search parameter constant for itemDescription:
Type: reference
Path: List.entry.item
- See Also:
- Constant Field Values
-
ITEM
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ITEM
Fluent Client search parameter constant for itemDescription:
Type: reference
Path: List.entry.item
-
SP_EMPTY_REASON
public static final String SP_EMPTY_REASON
Search parameter constant for empty-reasonDescription:
Type: token
Path: List.emptyReason
- See Also:
- Constant Field Values
-
EMPTY_REASON
public static final ca.uhn.fhir.rest.gclient.TokenClientParam EMPTY_REASON
Fluent Client search parameter constant for empty-reasonDescription:
Type: token
Path: List.emptyReason
-
SP_DATE
public static final String SP_DATE
Search parameter constant for dateDescription:
Type: date
Path: List.date
- See Also:
- Constant Field Values
-
DATE
public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE
Fluent Client search parameter constant for dateDescription:
Type: date
Path: List.date
-
SP_CODE
public static final String SP_CODE
Search parameter constant for codeDescription:
Type: token
Path: List.code
- See Also:
- Constant Field Values
-
CODE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE
Fluent Client search parameter constant for codeDescription:
Type: token
Path: List.code
-
SP_SUBJECT
public static final String SP_SUBJECT
Search parameter constant for subjectDescription:
Type: reference
Path: List.subject
- See Also:
- Constant Field Values
-
SUBJECT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT
Fluent Client search parameter constant for subjectDescription:
Type: reference
Path: List.subject
-
SP_PATIENT
public static final String SP_PATIENT
Search parameter constant for patientDescription:
Type: reference
Path: List.subject
- See Also:
- Constant Field Values
-
PATIENT
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT
Fluent Client search parameter constant for patientDescription:
Type: reference
Path: List.subject
-
SP_STATUS
public static final String SP_STATUS
Search parameter constant for statusDescription:
Type: token
Path: List.status
- See Also:
- Constant Field Values
-
STATUS
public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
Fluent Client search parameter constant for statusDescription:
Type: token
Path: List.status
-
SP_TITLE
public static final String SP_TITLE
Search parameter constant for titleDescription:
Type: string
Path: List.title
- See Also:
- Constant Field Values
-
TITLE
public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE
Fluent Client search parameter constant for titleDescription:
Type: string
Path: List.title
-
SP_NOTES
public static final String SP_NOTES
Search parameter constant for notesDescription:
Type: string
Path: List.note
- See Also:
- Constant Field Values
-
NOTES
public static final ca.uhn.fhir.rest.gclient.StringClientParam NOTES
Fluent Client search parameter constant for notesDescription:
Type: string
Path: List.note
-
SP_ENCOUNTER
public static final String SP_ENCOUNTER
Search parameter constant for encounterDescription:
Type: reference
Path: List.encounter
- See Also:
- Constant Field Values
-
ENCOUNTER
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENCOUNTER
Fluent Client search parameter constant for encounterDescription:
Type: reference
Path: List.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 "List:encounter".
-
INCLUDE_ITEM
public static final ca.uhn.fhir.model.api.Include INCLUDE_ITEM
Constant for fluent queries to be used to add include statements. Specifies the path value of "List:item".
-
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 "List:patient".
-
INCLUDE_SOURCE
public static final ca.uhn.fhir.model.api.Include INCLUDE_SOURCE
Constant for fluent queries to be used to add include statements. Specifies the path value of "List:source".
-
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 "List:subject".
-
-
Constructor Detail
-
ListResource
public ListResource()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
- Specified by:
getAllPopulatedChildElementsOfTypein interfaceca.uhn.fhir.model.api.ICompositeElement
-
getIdentifier
public List<IdentifierDt> getIdentifier()
Gets the value(s) for identifier (id). creating it if it does not exist. Will not returnnull.Definition: Identifier for the List assigned for business purposes outside the context of FHIR.
-
setIdentifier
public ListResource setIdentifier(List<IdentifierDt> theValue)
Sets the value(s) for identifier (id)Definition: Identifier for the List assigned for business purposes outside the context of FHIR.
-
addIdentifier
public IdentifierDt addIdentifier()
Adds and returns a new value for identifier (id)Definition: Identifier for the List assigned for business purposes outside the context of FHIR.
-
addIdentifier
public ListResource addIdentifier(IdentifierDt theValue)
Adds a given new value for identifier (id)Definition: Identifier for the List assigned for business purposes outside the context of FHIR.
- Parameters:
theValue- The identifier to add (must not benull)
-
getIdentifierFirstRep
public IdentifierDt getIdentifierFirstRep()
Gets the first repetition for identifier (id), creating it if it does not already exist.Definition: Identifier for the List assigned for business purposes outside the context of FHIR.
-
getTitleElement
public ca.uhn.fhir.model.primitive.StringDt getTitleElement()
Gets the value(s) for title (). creating it if it does not exist. Will not returnnull.Definition: A label for the list assigned by the author
-
getTitle
public String getTitle()
Gets the value(s) for title (). creating it if it does not exist. This method may returnnull.Definition: A label for the list assigned by the author
-
setTitle
public ListResource setTitle(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for title ()Definition: A label for the list assigned by the author
-
setTitle
public ListResource setTitle(String theString)
Sets the value for title ()Definition: A label for the list assigned by the author
-
getCode
public CodeableConceptDt getCode()
Gets the value(s) for code (what). creating it if it does not exist. Will not returnnull.Definition: This code defines the purpose of the list - why it was created
-
setCode
public ListResource setCode(CodeableConceptDt theValue)
Sets the value(s) for code (what)Definition: This code defines the purpose of the list - why it was created
-
getSubject
public ResourceReferenceDt getSubject()
Gets the value(s) for subject (who.focus). creating it if it does not exist. Will not returnnull.Definition: The common subject (or patient) of the resources that are in the list, if there is one
-
setSubject
public ListResource setSubject(ResourceReferenceDt theValue)
Sets the value(s) for subject (who.focus)Definition: The common subject (or patient) of the resources that are in the list, if there is one
-
getSource
public ResourceReferenceDt getSource()
Gets the value(s) for source (who.author). creating it if it does not exist. Will not returnnull.Definition: The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list
-
setSource
public ListResource setSource(ResourceReferenceDt theValue)
Sets the value(s) for source (who.author)Definition: The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list
-
getEncounter
public ResourceReferenceDt getEncounter()
Gets the value(s) for encounter (context). creating it if it does not exist. Will not returnnull.Definition: The encounter that is the context in which this list was created
-
setEncounter
public ListResource setEncounter(ResourceReferenceDt theValue)
Sets the value(s) for encounter (context)Definition: The encounter that is the context in which this list was created
-
getStatusElement
public ca.uhn.fhir.model.primitive.BoundCodeDt<ListStatusEnum> getStatusElement()
Gets the value(s) for status (status). creating it if it does not exist. Will not returnnull.Definition: Indicates the current state of this list
-
getStatus
public String getStatus()
Gets the value(s) for status (status). creating it if it does not exist. This method may returnnull.Definition: Indicates the current state of this list
-
setStatus
public ListResource setStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<ListStatusEnum> theValue)
Sets the value(s) for status (status)Definition: Indicates the current state of this list
-
setStatus
public ListResource setStatus(ListStatusEnum theValue)
Sets the value(s) for status (status)Definition: Indicates the current state of this list
-
getDateElement
public ca.uhn.fhir.model.primitive.DateTimeDt getDateElement()
Gets the value(s) for date (when.recorded). creating it if it does not exist. Will not returnnull.Definition: The date that the list was prepared
-
getDate
public Date getDate()
Gets the value(s) for date (when.recorded). creating it if it does not exist. This method may returnnull.Definition: The date that the list was prepared
-
setDate
public ListResource setDate(ca.uhn.fhir.model.primitive.DateTimeDt theValue)
Sets the value(s) for date (when.recorded)Definition: The date that the list was prepared
-
setDate
public ListResource setDate(Date theDate, ca.uhn.fhir.model.api.TemporalPrecisionEnum thePrecision)
Sets the value for date (when.recorded)Definition: The date that the list was prepared
-
setDateWithSecondsPrecision
public ListResource setDateWithSecondsPrecision(Date theDate)
Sets the value for date (when.recorded)Definition: The date that the list was prepared
-
getOrderedBy
public BoundCodeableConceptDt<ListOrderCodesEnum> getOrderedBy()
Gets the value(s) for orderedBy (). creating it if it does not exist. Will not returnnull.Definition: What order applies to the items in the list
-
setOrderedBy
public ListResource setOrderedBy(BoundCodeableConceptDt<ListOrderCodesEnum> theValue)
Sets the value(s) for orderedBy ()Definition: What order applies to the items in the list
-
setOrderedBy
public ListResource setOrderedBy(ListOrderCodesEnum theValue)
Sets the value(s) for orderedBy ()Definition: What order applies to the items in the list
-
getModeElement
public ca.uhn.fhir.model.primitive.BoundCodeDt<ListModeEnum> getModeElement()
Gets the value(s) for mode (class). creating it if it does not exist. Will not returnnull.Definition: How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted
-
getMode
public String getMode()
Gets the value(s) for mode (class). creating it if it does not exist. This method may returnnull.Definition: How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted
-
setMode
public ListResource setMode(ca.uhn.fhir.model.primitive.BoundCodeDt<ListModeEnum> theValue)
Sets the value(s) for mode (class)Definition: How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted
-
setMode
public ListResource setMode(ListModeEnum theValue)
Sets the value(s) for mode (class)Definition: How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted
-
getNoteElement
public ca.uhn.fhir.model.primitive.StringDt getNoteElement()
Gets the value(s) for note (). creating it if it does not exist. Will not returnnull.Definition: Comments that apply to the overall list
-
getNote
public String getNote()
Gets the value(s) for note (). creating it if it does not exist. This method may returnnull.Definition: Comments that apply to the overall list
-
setNote
public ListResource setNote(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for note ()Definition: Comments that apply to the overall list
-
setNote
public ListResource setNote(String theString)
Sets the value for note ()Definition: Comments that apply to the overall list
-
getEntry
public List<ListResource.Entry> getEntry()
Gets the value(s) for entry (). creating it if it does not exist. Will not returnnull.Definition: Entries in this list
-
setEntry
public ListResource setEntry(List<ListResource.Entry> theValue)
Sets the value(s) for entry ()Definition: Entries in this list
-
addEntry
public ListResource.Entry addEntry()
Adds and returns a new value for entry ()Definition: Entries in this list
-
addEntry
public ListResource addEntry(ListResource.Entry theValue)
Adds a given new value for entry ()Definition: Entries in this list
- Parameters:
theValue- The entry to add (must not benull)
-
getEntryFirstRep
public ListResource.Entry getEntryFirstRep()
Gets the first repetition for entry (), creating it if it does not already exist.Definition: Entries in this list
-
getEmptyReason
public CodeableConceptDt getEmptyReason()
Gets the value(s) for emptyReason (). creating it if it does not exist. Will not returnnull.Definition: If the list is empty, why the list is empty
-
setEmptyReason
public ListResource setEmptyReason(CodeableConceptDt theValue)
Sets the value(s) for emptyReason ()Definition: If the list is empty, why the list is empty
-
getResourceName
public String getResourceName()
- Specified by:
getResourceNamein interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
- Specified by:
getStructureFhirVersionEnumin interfaceorg.hl7.fhir.instance.model.api.IBaseResource- Specified by:
getStructureFhirVersionEnumin interfaceca.uhn.fhir.model.api.IResource
-
-