Class Composition
- 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
Definition: A set of healthcare-related information that is assembled together into a single logical document that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. While a Composition defines the structure, it does not actually contain the content: rather the full content of a document is contained in a Bundle, of which the Composition is the first resource contained
Requirements: To support documents, and also to capture the EN13606 notion of an attested commit to the patient EHR, and to allow a set of disparate resources at the information/engineering level to be gathered into a clinical statement
Profile Definition: http://hl7.org/fhir/profiles/Composition
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Block class for child element: Composition.attester ()static class
Block class for child element: Composition.event ()static class
Block class for child element: Composition.section () -
Field Summary
Modifier and TypeFieldDescriptionstatic final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for attesterstatic final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for authorstatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for classstatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for confidentialitystatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for contextstatic final ca.uhn.fhir.rest.gclient.DateClientParam
Fluent Client search parameter constant for datestatic final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for encounterstatic final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for entrystatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for identifierstatic final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for patientstatic final ca.uhn.fhir.rest.gclient.DateClientParam
Fluent Client search parameter constant for periodstatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for sectionstatic final String
Search parameter constant for attesterstatic final String
Search parameter constant for authorstatic final String
Search parameter constant for classstatic final String
Search parameter constant for confidentialitystatic final String
Search parameter constant for contextstatic final String
Search parameter constant for datestatic final String
Search parameter constant for encounterstatic final String
Search parameter constant for entrystatic final String
Search parameter constant for identifierstatic final String
Search parameter constant for patientstatic final String
Search parameter constant for periodstatic final String
Search parameter constant for sectionstatic final String
Search parameter constant for statusstatic final String
Search parameter constant for subjectstatic final String
Search parameter constant for titlestatic final String
Search parameter constant for typestatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for statusstatic final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for subjectstatic final ca.uhn.fhir.rest.gclient.StringClientParam
Fluent Client search parameter constant for titlestatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for typeFields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID
Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdds and returns a new value for attester ()addAttester
(Composition.Attester theValue) Adds a given new value for attester ()Adds and returns a new value for author ()addEvent()
Adds and returns a new value for event ()addEvent
(Composition.Event theValue) Adds a given new value for event ()Adds and returns a new value for section ()addSection
(Composition.Section theValue) Adds a given new value for section ()<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) Gets the value(s) for attester ().Gets the first repetition for attester (), creating it if it does not already exist.Gets the value(s) for author ().Gets the value(s) for class ().Gets the value(s) for confidentiality ().ca.uhn.fhir.model.primitive.CodeDt
Gets the value(s) for confidentiality ().Gets the value(s) for custodian ().getDate()
Gets the value(s) for date ().ca.uhn.fhir.model.primitive.DateTimeDt
Gets the value(s) for date ().Gets the value(s) for encounter ().getEvent()
Gets the value(s) for event ().Gets the first repetition for event (), creating it if it does not already exist.Gets the value(s) for identifier ().Gets the value(s) for section ().Gets the first repetition for section (), creating it if it does not already exist.Gets the value(s) for status ().ca.uhn.fhir.model.primitive.BoundCodeDt
<CompositionStatusEnum> Gets the value(s) for status ().ca.uhn.fhir.context.FhirVersionEnum
Gets the value(s) for subject ().getTitle()
Gets the value(s) for title ().ca.uhn.fhir.model.primitive.StringDt
Gets the value(s) for title ().getType()
Gets the value(s) for type ().boolean
isEmpty()
setAttester
(List<Composition.Attester> theValue) Sets the value(s) for attester ()setAuthor
(List<ResourceReferenceDt> theValue) Sets the value(s) for author ()setClassElement
(CodeableConceptDt theValue) Sets the value(s) for class ()setConfidentiality
(ca.uhn.fhir.model.primitive.CodeDt theValue) Sets the value(s) for confidentiality ()setConfidentiality
(String theCode) Sets the value for confidentiality ()setCustodian
(ResourceReferenceDt theValue) Sets the value(s) for custodian ()setDate
(ca.uhn.fhir.model.primitive.DateTimeDt theValue) Sets the value(s) for date ()Sets the value for date ()setDateWithSecondsPrecision
(Date theDate) Sets the value for date ()setEncounter
(ResourceReferenceDt theValue) Sets the value(s) for encounter ()setEvent
(List<Composition.Event> theValue) Sets the value(s) for event ()setIdentifier
(IdentifierDt theValue) Sets the value(s) for identifier ()setSection
(List<Composition.Section> theValue) Sets the value(s) for section ()setStatus
(CompositionStatusEnum theValue) Sets the value(s) for status ()setStatus
(ca.uhn.fhir.model.primitive.BoundCodeDt<CompositionStatusEnum> theValue) Sets the value(s) for status ()setSubject
(ResourceReferenceDt theValue) Sets the value(s) for subject ()setTitle
(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for title ()Sets the value for title ()setType
(CodeableConceptDt theValue) Sets the value(s) for type ()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
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getIdElement, isDeleted, setId, setId
Methods inherited from interface ca.uhn.fhir.model.api.IResource
getContained, getId, getLanguage, getMeta, getResourceMetadata, getText, setId, setLanguage, setResourceMetadata
-
Field Details
-
SP_TYPE
Search parameter constant for typeDescription:
Type: token
Path: Composition.type
- See Also:
-
TYPE
Fluent Client search parameter constant for typeDescription:
Type: token
Path: Composition.type
-
SP_CLASS
Search parameter constant for classDescription:
Type: token
Path: Composition.class
- See Also:
-
CLASS
Fluent Client search parameter constant for classDescription:
Type: token
Path: Composition.class
-
SP_DATE
Search parameter constant for dateDescription:
Type: date
Path: Composition.date
- See Also:
-
DATE
Fluent Client search parameter constant for dateDescription:
Type: date
Path: Composition.date
-
SP_SUBJECT
Search parameter constant for subjectDescription:
Type: reference
Path: Composition.subject
- See Also:
-
SUBJECT
Fluent Client search parameter constant for subjectDescription:
Type: reference
Path: Composition.subject
-
SP_AUTHOR
Search parameter constant for authorDescription:
Type: reference
Path: Composition.author
- See Also:
-
AUTHOR
Fluent Client search parameter constant for authorDescription:
Type: reference
Path: Composition.author
-
SP_ATTESTER
Search parameter constant for attesterDescription:
Type: reference
Path: Composition.attester.party
- See Also:
-
ATTESTER
Fluent Client search parameter constant for attesterDescription:
Type: reference
Path: Composition.attester.party
-
SP_CONTEXT
Search parameter constant for contextDescription:
Type: token
Path: Composition.event.code
- See Also:
-
CONTEXT
Fluent Client search parameter constant for contextDescription:
Type: token
Path: Composition.event.code
-
SP_SECTION
Search parameter constant for sectionDescription:
Type: token
Path: Composition.section.code
- See Also:
-
SECTION
Fluent Client search parameter constant for sectionDescription:
Type: token
Path: Composition.section.code
-
SP_ENTRY
Search parameter constant for entryDescription:
Type: reference
Path: Composition.section.entry
- See Also:
-
ENTRY
Fluent Client search parameter constant for entryDescription:
Type: reference
Path: Composition.section.entry
-
SP_IDENTIFIER
Search parameter constant for identifierDescription:
Type: token
Path: Composition.identifier
- See Also:
-
IDENTIFIER
Fluent Client search parameter constant for identifierDescription:
Type: token
Path: Composition.identifier
-
SP_TITLE
Search parameter constant for titleDescription:
Type: string
Path: Composition.title
- See Also:
-
TITLE
Fluent Client search parameter constant for titleDescription:
Type: string
Path: Composition.title
-
SP_STATUS
Search parameter constant for statusDescription:
Type: token
Path: Composition.status
- See Also:
-
STATUS
Fluent Client search parameter constant for statusDescription:
Type: token
Path: Composition.status
-
SP_CONFIDENTIALITY
Search parameter constant for confidentialityDescription:
Type: token
Path: Composition.confidentiality
- See Also:
-
CONFIDENTIALITY
Fluent Client search parameter constant for confidentialityDescription:
Type: token
Path: Composition.confidentiality
-
SP_PERIOD
Search parameter constant for periodDescription:
Type: date
Path: Composition.event.period
- See Also:
-
PERIOD
Fluent Client search parameter constant for periodDescription:
Type: date
Path: Composition.event.period
-
SP_PATIENT
Search parameter constant for patientDescription:
Type: reference
Path: Composition.subject
- See Also:
-
PATIENT
Fluent Client search parameter constant for patientDescription:
Type: reference
Path: Composition.subject
-
SP_ENCOUNTER
Search parameter constant for encounterDescription:
Type: reference
Path: Composition.encounter
- See Also:
-
ENCOUNTER
Fluent Client search parameter constant for encounterDescription:
Type: reference
Path: Composition.encounter
-
INCLUDE_ATTESTER
Constant for fluent queries to be used to add include statements. Specifies the path value of "Composition:attester". -
INCLUDE_AUTHOR
Constant for fluent queries to be used to add include statements. Specifies the path value of "Composition:author". -
INCLUDE_ENCOUNTER
Constant for fluent queries to be used to add include statements. Specifies the path value of "Composition:encounter". -
INCLUDE_ENTRY
Constant for fluent queries to be used to add include statements. Specifies the path value of "Composition:entry". -
INCLUDE_PATIENT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Composition:patient". -
INCLUDE_SUBJECT
Constant for fluent queries to be used to add include statements. Specifies the path value of "Composition:subject".
-
-
Constructor Details
-
Composition
public Composition()
-
-
Method Details
-
isEmpty
- Specified by:
isEmpty
in 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:
getAllPopulatedChildElementsOfType
in interfaceca.uhn.fhir.model.api.ICompositeElement
-
getIdentifier
Gets the value(s) for identifier (). creating it if it does not exist. Will not returnnull
.Definition: Logical identifier for the composition, assigned when created. This identifier stays constant as the composition is changed over time
-
setIdentifier
Sets the value(s) for identifier ()Definition: Logical identifier for the composition, assigned when created. This identifier stays constant as the composition is changed over time
-
getDateElement
Gets the value(s) for date (). creating it if it does not exist. Will not returnnull
.Definition: The composition editing time, when the composition was last logically changed by the author
-
getDate
Gets the value(s) for date (). creating it if it does not exist. This method may returnnull
.Definition: The composition editing time, when the composition was last logically changed by the author
-
setDate
Sets the value(s) for date ()Definition: The composition editing time, when the composition was last logically changed by the author
-
setDateWithSecondsPrecision
Sets the value for date ()Definition: The composition editing time, when the composition was last logically changed by the author
-
setDate
Sets the value for date ()Definition: The composition editing time, when the composition was last logically changed by the author
-
getType
Gets the value(s) for type (). creating it if it does not exist. Will not returnnull
.Definition: Specifies the particular kind of composition (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the composition
-
setType
Sets the value(s) for type ()Definition: Specifies the particular kind of composition (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the composition
-
getClassElement
Gets the value(s) for class (). creating it if it does not exist. Will not returnnull
.Definition: A categorization for the type of the composition - helps for indexing and searching. This may be implied by or derived from the code specified in the Composition Type
-
setClassElement
Sets the value(s) for class ()Definition: A categorization for the type of the composition - helps for indexing and searching. This may be implied by or derived from the code specified in the Composition Type
-
getTitleElement
Gets the value(s) for title (). creating it if it does not exist. Will not returnnull
.Definition: Official human-readable label for the composition
-
getTitle
Gets the value(s) for title (). creating it if it does not exist. This method may returnnull
.Definition: Official human-readable label for the composition
-
setTitle
Sets the value(s) for title ()Definition: Official human-readable label for the composition
-
setTitle
Sets the value for title ()Definition: Official human-readable label for the composition
-
getStatusElement
Gets the value(s) for status (). creating it if it does not exist. Will not returnnull
.Definition: The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document
-
getStatus
Gets the value(s) for status (). creating it if it does not exist. This method may returnnull
.Definition: The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document
-
setStatus
public Composition setStatus(ca.uhn.fhir.model.primitive.BoundCodeDt<CompositionStatusEnum> theValue) Sets the value(s) for status ()Definition: The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document
-
setStatus
Sets the value(s) for status ()Definition: The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document
-
getConfidentialityElement
Gets the value(s) for confidentiality (). creating it if it does not exist. Will not returnnull
.Definition: The code specifying the level of confidentiality of the Composition
-
getConfidentiality
Gets the value(s) for confidentiality (). creating it if it does not exist. This method may returnnull
.Definition: The code specifying the level of confidentiality of the Composition
-
setConfidentiality
Sets the value(s) for confidentiality ()Definition: The code specifying the level of confidentiality of the Composition
-
setConfidentiality
Sets the value for confidentiality ()Definition: The code specifying the level of confidentiality of the Composition
-
getSubject
Gets the value(s) for subject (). creating it if it does not exist. Will not returnnull
.Definition: Who or what the composition is about. The composition can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure)
-
setSubject
Sets the value(s) for subject ()Definition: Who or what the composition is about. The composition can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure)
-
getAuthor
Gets the value(s) for author (). creating it if it does not exist. Will not returnnull
.Definition: Identifies who is responsible for the information in the composition, not necessarily who typed it in.
-
setAuthor
Sets the value(s) for author ()Definition: Identifies who is responsible for the information in the composition, not necessarily who typed it in.
-
addAuthor
Adds and returns a new value for author ()Definition: Identifies who is responsible for the information in the composition, not necessarily who typed it in.
-
getAttester
Gets the value(s) for attester (). creating it if it does not exist. Will not returnnull
.Definition: A participant who has attested to the accuracy of the composition/document
-
setAttester
Sets the value(s) for attester ()Definition: A participant who has attested to the accuracy of the composition/document
-
addAttester
Adds and returns a new value for attester ()Definition: A participant who has attested to the accuracy of the composition/document
-
addAttester
Adds a given new value for attester ()Definition: A participant who has attested to the accuracy of the composition/document
- Parameters:
theValue
- The attester to add (must not benull
)
-
getAttesterFirstRep
Gets the first repetition for attester (), creating it if it does not already exist.Definition: A participant who has attested to the accuracy of the composition/document
-
getCustodian
Gets the value(s) for custodian (). creating it if it does not exist. Will not returnnull
.Definition: Identifies the organization or group who is responsible for ongoing maintenance of and access to the composition/document information
-
setCustodian
Sets the value(s) for custodian ()Definition: Identifies the organization or group who is responsible for ongoing maintenance of and access to the composition/document information
-
getEvent
Gets the value(s) for event (). creating it if it does not exist. Will not returnnull
.Definition: The clinical service, such as a colonoscopy or an appendectomy, being documented
-
setEvent
Sets the value(s) for event ()Definition: The clinical service, such as a colonoscopy or an appendectomy, being documented
-
addEvent
Adds and returns a new value for event ()Definition: The clinical service, such as a colonoscopy or an appendectomy, being documented
-
addEvent
Adds a given new value for event ()Definition: The clinical service, such as a colonoscopy or an appendectomy, being documented
- Parameters:
theValue
- The event to add (must not benull
)
-
getEventFirstRep
Gets the first repetition for event (), creating it if it does not already exist.Definition: The clinical service, such as a colonoscopy or an appendectomy, being documented
-
getEncounter
Gets the value(s) for encounter (). creating it if it does not exist. Will not returnnull
.Definition: Describes the clinical encounter or type of care this documentation is associated with.
-
setEncounter
Sets the value(s) for encounter ()Definition: Describes the clinical encounter or type of care this documentation is associated with.
-
getSection
Gets the value(s) for section (). creating it if it does not exist. Will not returnnull
.Definition: The root of the sections that make up the composition
-
setSection
Sets the value(s) for section ()Definition: The root of the sections that make up the composition
-
addSection
Adds and returns a new value for section ()Definition: The root of the sections that make up the composition
-
addSection
Adds a given new value for section ()Definition: The root of the sections that make up the composition
- Parameters:
theValue
- The section to add (must not benull
)
-
getSectionFirstRep
Gets the first repetition for section (), creating it if it does not already exist.Definition: The root of the sections that make up the composition
-
getResourceName
- Specified by:
getResourceName
in interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
- Specified by:
getStructureFhirVersionEnum
in interfaceorg.hl7.fhir.instance.model.api.IBaseResource
- Specified by:
getStructureFhirVersionEnum
in interfaceca.uhn.fhir.model.api.IResource
-