Class ChEmedEprDocumentPml
java.lang.Object
org.hl7.fhir.r4.model.Base
org.hl7.fhir.r4.model.BaseResource
org.hl7.fhir.r4.model.Resource
org.hl7.fhir.r4.model.Bundle
org.projecthusky.fhir.emed.ch.epr.resource.ChEmedEprDocument
org.projecthusky.fhir.emed.ch.epr.resource.pml.ChEmedEprDocumentPml
- 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.IBaseBundle,org.hl7.fhir.instance.model.api.IBaseResource
The HAPI custom structure for the CH-EMED-EPR PML Document Bundle.
- Author:
- Quentin Ligier
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hl7.fhir.r4.model.Bundle
org.hl7.fhir.r4.model.Bundle.BundleEntryComponent, org.hl7.fhir.r4.model.Bundle.BundleEntryRequestComponent, org.hl7.fhir.r4.model.Bundle.BundleEntryResponseComponent, org.hl7.fhir.r4.model.Bundle.BundleEntrySearchComponent, org.hl7.fhir.r4.model.Bundle.BundleLinkComponent, org.hl7.fhir.r4.model.Bundle.BundleType, org.hl7.fhir.r4.model.Bundle.BundleTypeEnumFactory, org.hl7.fhir.r4.model.Bundle.HTTPVerb, org.hl7.fhir.r4.model.Bundle.HTTPVerbEnumFactory, org.hl7.fhir.r4.model.Bundle.SearchEntryMode, org.hl7.fhir.r4.model.Bundle.SearchEntryModeEnumFactory -
Field Summary
Fields inherited from class org.hl7.fhir.r4.model.Bundle
COMPOSITION, entry, identifier, IDENTIFIER, INCLUDE_COMPOSITION, INCLUDE_MESSAGE, link, MESSAGE, signature, SP_COMPOSITION, SP_IDENTIFIER, SP_MESSAGE, SP_TIMESTAMP, SP_TYPE, timestamp, TIMESTAMP, total, type, TYPEFields inherited from class org.hl7.fhir.r4.model.Resource
id, implicitRules, language, metaFields inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
RES_ID, SP_RES_IDFields inherited from interface org.hl7.fhir.instance.model.api.IBaseBundle
LINK_NEXT, LINK_PREV, LINK_SELFFields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET -
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor for the parser.ChEmedEprDocumentPml(UUID documentId, Instant timestamp) Constructor that pre-populates fields. -
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.r4.model.Bundle.BundleEntryComponentaddMedicationDispense(ChEmedEprMedicationDispensePml medicationDispense) Adds a medication dispense.org.hl7.fhir.r4.model.Bundle.BundleEntryComponentaddMedicationRequest(ChEmedEprMedicationRequestChangedPml medicationRequest) Adds a medication request.org.hl7.fhir.r4.model.Bundle.BundleEntryComponentaddMedicationRequest(ChEmedEprMedicationRequestPml medicationRequest) Adds a medication request.org.hl7.fhir.r4.model.Bundle.BundleEntryComponentaddMedicationRequest(ChEmedEprMedicationRequestPre medicationRequest) Adds a medication request.org.hl7.fhir.r4.model.Bundle.BundleEntryComponentaddMedicationStatement(ChEmedEprMedicationStatementMtp medicationStatement) Adds a medication statement.org.hl7.fhir.r4.model.Bundle.BundleEntryComponentaddMedicationStatement(ChEmedEprMedicationStatementChanged medicationStatement) Adds a medication statement.org.hl7.fhir.r4.model.Bundle.BundleEntryComponentaddMedicationStatement(ChEmedEprMedicationStatementPml medicationStatement) Adds a medication statement.org.hl7.fhir.r4.model.Bundle.BundleEntryComponentaddObservation(ChEmedEprObservationPml observation) Adds an observation.copy()org.hl7.fhir.r4.model.Bundle.BundleEntryComponentReturns the composition entry; if missing, it creates it.booleanReturns whether the composition entry exists.Returns the composition or throws.org.hl7.fhir.r4.model.Bundle.BundleEntryComponentsetComposition(ChEmedEprCompositionPml composition) Sets the composition.Methods inherited from class org.projecthusky.fhir.emed.ch.epr.resource.ChEmedEprDocument
getEntryByResourceType, getEntryResourceByResourceType, resolveIdentifier, resolvePatient, resolveTimestamp, setCreationTime, setIdentifier, setPatientMethods inherited from class org.hl7.fhir.r4.model.Bundle
addChild, addEntry, addEntry, addLink, addLink, copyValues, equalsDeep, equalsShallow, fhirType, getEntry, getEntryFirstRep, getIdentifier, getLink, getLink, getLinkFirstRep, getLinkOrCreate, getNamedProperty, getProperty, getResourceType, getSignature, getTimestamp, getTimestampElement, getTotal, getTotalElement, getType, getTypeElement, getTypesForProperty, hasEntry, hasIdentifier, hasLink, hasSignature, hasTimestamp, hasTimestampElement, hasTotal, hasTotalElement, hasType, hasTypeElement, isEmpty, listChildren, makeProperty, removeChild, setEntry, setIdentifier, setLink, setProperty, setProperty, setSignature, setTimestamp, setTimestampElement, setTotal, setTotalElement, setType, setTypeElement, typedCopyMethods inherited from class org.hl7.fhir.r4.model.Resource
copyValues, getId, getIdBase, getIdElement, getIdPart, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMetaMethods inherited from class org.hl7.fhir.r4.model.BaseResource
getStructureFhirVersionEnum, isResource, setIdMethods inherited from class org.hl7.fhir.r4.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getXhtml, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getUserData, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, hasFormatCommentMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getMeta, getStructureFhirVersionEnum, isDeleted, setId
-
Constructor Details
-
ChEmedEprDocumentPml
public ChEmedEprDocumentPml()Empty constructor for the parser. -
ChEmedEprDocumentPml
Constructor that pre-populates fields.- Parameters:
documentId- The document ID.timestamp- The document creation date.
-
-
Method Details
-
getEmedType
- Specified by:
getEmedTypein classChEmedEprDocument
-
hasCompositionEntry
public boolean hasCompositionEntry()Returns whether the composition entry exists.- Returns:
trueif the composition entry exists,falseotherwise.
-
getCompositionEntry
public org.hl7.fhir.r4.model.Bundle.BundleEntryComponent getCompositionEntry()Returns the composition entry; if missing, it creates it.- Specified by:
getCompositionEntryin classChEmedEprDocument- Returns:
- the composition entry.
-
resolveComposition
Returns the composition or throws.- Specified by:
resolveCompositionin classChEmedEprDocument- Returns:
- the composition.
- Throws:
InvalidEmedContentException- if the composition is missing.
-
setComposition
public org.hl7.fhir.r4.model.Bundle.BundleEntryComponent setComposition(ChEmedEprCompositionPml composition) Sets the composition.- Parameters:
composition- The CH EMED Medication List Composition.- Returns:
- the bundle entry.
-
addMedicationStatement
public org.hl7.fhir.r4.model.Bundle.BundleEntryComponent addMedicationStatement(ChEmedEprMedicationStatementPml medicationStatement) Adds a medication statement.- Parameters:
medicationStatement- a medication statement.- Returns:
- the bundle entry.
-
addMedicationStatement
public org.hl7.fhir.r4.model.Bundle.BundleEntryComponent addMedicationStatement(ChEmedEprMedicationStatementMtp medicationStatement) Adds a medication statement.- Parameters:
medicationStatement- a medication statement.- Returns:
- the bundle entry.
-
addMedicationStatement
public org.hl7.fhir.r4.model.Bundle.BundleEntryComponent addMedicationStatement(ChEmedEprMedicationStatementChanged medicationStatement) Adds a medication statement.- Parameters:
medicationStatement- a medication statement.- Returns:
- the bundle entry.
-
addMedicationRequest
public org.hl7.fhir.r4.model.Bundle.BundleEntryComponent addMedicationRequest(ChEmedEprMedicationRequestPml medicationRequest) Adds a medication request.- Parameters:
medicationRequest- a medication request.- Returns:
- the bundle entry.
-
addMedicationRequest
public org.hl7.fhir.r4.model.Bundle.BundleEntryComponent addMedicationRequest(ChEmedEprMedicationRequestChangedPml medicationRequest) Adds a medication request.- Parameters:
medicationRequest- a medication request.- Returns:
- the bundle entry.
-
addMedicationRequest
public org.hl7.fhir.r4.model.Bundle.BundleEntryComponent addMedicationRequest(ChEmedEprMedicationRequestPre medicationRequest) Adds a medication request.- Parameters:
medicationRequest- a medication request.- Returns:
- the bundle entry.
-
addMedicationDispense
public org.hl7.fhir.r4.model.Bundle.BundleEntryComponent addMedicationDispense(ChEmedEprMedicationDispensePml medicationDispense) Adds a medication dispense.- Parameters:
medicationDispense- a medication dispense.- Returns:
- the bundle entry.
-
addObservation
public org.hl7.fhir.r4.model.Bundle.BundleEntryComponent addObservation(ChEmedEprObservationPml observation) Adds an observation.- Parameters:
observation- an observation.- Returns:
- the bundle entry.
-
copy
- Overrides:
copyin classorg.hl7.fhir.r4.model.Bundle
-