Package com.ibm.fhir.model.resource
Class Composition
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.resource.Resource
-
- com.ibm.fhir.model.resource.DomainResource
-
- com.ibm.fhir.model.resource.Composition
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class Composition extends DomainResourceA set of healthcare-related information that is assembled together into a single logical package 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. A Composition defines the structure and narrative content necessary for a document. However, a Composition alone does not constitute a document. Rather, the Composition must be the first entry in a Bundle where Bundle.type=document, and any other resources referenced from Composition must be included as subsequent entries in the Bundle (for example Patient, Practitioner, Encounter, etc.).Maturity level: FMM2 (Trial Use)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classComposition.AttesterA participant who has attested to the accuracy of the composition/document.static classComposition.Builderstatic classComposition.EventThe clinical service, such as a colonoscopy or an appendectomy, being documented.static classComposition.RelatesToRelationships that this composition has with other compositions or documents that already exist.static classComposition.SectionThe root of the sections that make up the composition.
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.resource.DomainResource
contained, extension, modifierExtension, text
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(java.lang.String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static Composition.Builderbuilder()booleanequals(java.lang.Object obj)java.util.List<Composition.Attester>getAttester()A participant who has attested to the accuracy of the composition/document.java.util.List<Reference>getAuthor()Identifies who is responsible for the information in the composition, not necessarily who typed it in.java.util.List<CodeableConcept>getCategory()A categorization for the type of the composition - helps for indexing and searching.DocumentConfidentialitygetConfidentiality()The code specifying the level of confidentiality of the Composition.ReferencegetCustodian()Identifies the organization or group who is responsible for ongoing maintenance of and access to the composition/document information.DateTimegetDate()The composition editing time, when the composition was last logically changed by the author.ReferencegetEncounter()Describes the clinical encounter or type of care this documentation is associated with.java.util.List<Composition.Event>getEvent()The clinical service, such as a colonoscopy or an appendectomy, being documented.IdentifiergetIdentifier()A version-independent identifier for the Composition.java.util.List<Composition.RelatesTo>getRelatesTo()Relationships that this composition has with other compositions or documents that already exist.java.util.List<Composition.Section>getSection()The root of the sections that make up the composition.CompositionStatusgetStatus()The workflow/clinical status of this composition.ReferencegetSubject()Who or what the composition is about.StringgetTitle()Official human-readable label for the composition.CodeableConceptgetType()Specifies the particular kind of composition (e.g.booleanhasChildren()inthashCode()Composition.BuildertoBuilder()Create a new Builder from the contents of this Resource-
Methods inherited from class com.ibm.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class com.ibm.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
Method Detail
-
getIdentifier
public Identifier getIdentifier()
A version-independent identifier for the Composition. This identifier stays constant as the composition is changed over time.- Returns:
- An immutable object of type
Identifierthat may be null.
-
getStatus
public CompositionStatus getStatus()
The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document.- Returns:
- An immutable object of type
CompositionStatusthat is non-null.
-
getType
public CodeableConcept getType()
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.- Returns:
- An immutable object of type
CodeableConceptthat is non-null.
-
getCategory
public java.util.List<CodeableConcept> getCategory()
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.- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConceptthat may be empty.
-
getSubject
public Reference getSubject()
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).- Returns:
- An immutable object of type
Referencethat may be null.
-
getEncounter
public Reference getEncounter()
Describes the clinical encounter or type of care this documentation is associated with.- Returns:
- An immutable object of type
Referencethat may be null.
-
getDate
public DateTime getDate()
The composition editing time, when the composition was last logically changed by the author.- Returns:
- An immutable object of type
DateTimethat is non-null.
-
getAuthor
public java.util.List<Reference> getAuthor()
Identifies who is responsible for the information in the composition, not necessarily who typed it in.- Returns:
- An unmodifiable list containing immutable objects of type
Referencethat is non-empty.
-
getTitle
public String getTitle()
Official human-readable label for the composition.- Returns:
- An immutable object of type
Stringthat is non-null.
-
getConfidentiality
public DocumentConfidentiality getConfidentiality()
The code specifying the level of confidentiality of the Composition.- Returns:
- An immutable object of type
DocumentConfidentialitythat may be null.
-
getAttester
public java.util.List<Composition.Attester> getAttester()
A participant who has attested to the accuracy of the composition/document.- Returns:
- An unmodifiable list containing immutable objects of type
Composition.Attesterthat may be empty.
-
getCustodian
public Reference getCustodian()
Identifies the organization or group who is responsible for ongoing maintenance of and access to the composition/document information.- Returns:
- An immutable object of type
Referencethat may be null.
-
getRelatesTo
public java.util.List<Composition.RelatesTo> getRelatesTo()
Relationships that this composition has with other compositions or documents that already exist.- Returns:
- An unmodifiable list containing immutable objects of type
Composition.RelatesTothat may be empty.
-
getEvent
public java.util.List<Composition.Event> getEvent()
The clinical service, such as a colonoscopy or an appendectomy, being documented.- Returns:
- An unmodifiable list containing immutable objects of type
Composition.Eventthat may be empty.
-
getSection
public java.util.List<Composition.Section> getSection()
The root of the sections that make up the composition.- Returns:
- An unmodifiable list containing immutable objects of type
Composition.Sectionthat may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classDomainResource
-
accept
public void accept(java.lang.String elementName, int elementIndex, Visitor visitor)Description copied from interface:VisitableAccept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }- Specified by:
acceptin interfaceVisitable- Specified by:
acceptin classAbstractVisitable- Parameters:
elementName- the name of the element in the context of this visitelementIndex- the index of the element in a list or -1 if it is not contained within a Listvisitor- the visitor to use
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toBuilder
public Composition.Builder toBuilder()
Description copied from class:ResourceCreate a new Builder from the contents of this Resource- Specified by:
toBuilderin classDomainResource
-
builder
public static Composition.Builder builder()
-
-