Class ChEmedEprObservationPml
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.DomainResource
org.hl7.fhir.r4.model.Observation
org.projecthusky.fhir.emed.ch.epr.resource.ChEmedEprObservation<ChEmedEprMedicationStatementChangedPml,ChEmedEprMedicationRequestChangedPml>
org.projecthusky.fhir.emed.ch.epr.resource.pml.ChEmedEprObservationPml
- 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,ChEmedEprDocumentAuthorable<ChEmedEprObservationPml>,ChEmedEprEntry
public class ChEmedEprObservationPml
extends ChEmedEprObservation<ChEmedEprMedicationStatementChangedPml,ChEmedEprMedicationRequestChangedPml>
implements ChEmedEprDocumentAuthorable<ChEmedEprObservationPml>
The HAPI custom structure for CH-EMED-EPR Observation (PML).
- Author:
- Ronaldo Loureiro
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hl7.fhir.r4.model.Observation
org.hl7.fhir.r4.model.Observation.ObservationComponentComponent, org.hl7.fhir.r4.model.Observation.ObservationReferenceRangeComponent, org.hl7.fhir.r4.model.Observation.ObservationStatus, org.hl7.fhir.r4.model.Observation.ObservationStatusEnumFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected @Nullable org.hl7.fhir.r4.model.ReferenceAuthor of the original document if different from the author of the medical decision (Observation.performer), see also 'Guidance - Different Authors'protected @Nullable ChEmedExtPharmaceuticalAdviceReference to the original document.Fields inherited from class org.projecthusky.fhir.emed.ch.epr.resource.ChEmedEprObservation
dispense, medicationRequestChanged, medicationStatementChanged, prescription, treatmentPlanFields inherited from class org.hl7.fhir.r4.model.Observation
BASED_ON, basedOn, basedOnTarget, bodySite, category, CATEGORY, code, CODE, CODE_VALUE_CONCEPT, CODE_VALUE_DATE, CODE_VALUE_QUANTITY, CODE_VALUE_STRING, COMBO_CODE, COMBO_CODE_VALUE_CONCEPT, COMBO_CODE_VALUE_QUANTITY, COMBO_DATA_ABSENT_REASON, COMBO_VALUE_CONCEPT, COMBO_VALUE_QUANTITY, component, COMPONENT_CODE, COMPONENT_CODE_VALUE_CONCEPT, COMPONENT_CODE_VALUE_QUANTITY, COMPONENT_DATA_ABSENT_REASON, COMPONENT_VALUE_CONCEPT, COMPONENT_VALUE_QUANTITY, DATA_ABSENT_REASON, dataAbsentReason, DATE, DERIVED_FROM, derivedFrom, derivedFromTarget, device, DEVICE, deviceTarget, effective, encounter, ENCOUNTER, encounterTarget, focus, FOCUS, focusTarget, HAS_MEMBER, hasMember, hasMemberTarget, identifier, IDENTIFIER, INCLUDE_BASED_ON, INCLUDE_DERIVED_FROM, INCLUDE_DEVICE, INCLUDE_ENCOUNTER, INCLUDE_FOCUS, INCLUDE_HAS_MEMBER, INCLUDE_PART_OF, INCLUDE_PATIENT, INCLUDE_PERFORMER, INCLUDE_SPECIMEN, INCLUDE_SUBJECT, interpretation, issued, method, METHOD, note, PART_OF, partOf, partOfTarget, PATIENT, performer, PERFORMER, performerTarget, referenceRange, SP_BASED_ON, SP_CATEGORY, SP_CODE, SP_CODE_VALUE_CONCEPT, SP_CODE_VALUE_DATE, SP_CODE_VALUE_QUANTITY, SP_CODE_VALUE_STRING, SP_COMBO_CODE, SP_COMBO_CODE_VALUE_CONCEPT, SP_COMBO_CODE_VALUE_QUANTITY, SP_COMBO_DATA_ABSENT_REASON, SP_COMBO_VALUE_CONCEPT, SP_COMBO_VALUE_QUANTITY, SP_COMPONENT_CODE, SP_COMPONENT_CODE_VALUE_CONCEPT, SP_COMPONENT_CODE_VALUE_QUANTITY, SP_COMPONENT_DATA_ABSENT_REASON, SP_COMPONENT_VALUE_CONCEPT, SP_COMPONENT_VALUE_QUANTITY, SP_DATA_ABSENT_REASON, SP_DATE, SP_DERIVED_FROM, SP_DEVICE, SP_ENCOUNTER, SP_FOCUS, SP_HAS_MEMBER, SP_IDENTIFIER, SP_METHOD, SP_PART_OF, SP_PATIENT, SP_PERFORMER, SP_SPECIMEN, SP_STATUS, SP_SUBJECT, SP_VALUE_CONCEPT, SP_VALUE_DATE, SP_VALUE_QUANTITY, SP_VALUE_STRING, specimen, SPECIMEN, specimenTarget, status, STATUS, subject, SUBJECT, subjectTarget, value, VALUE_CONCEPT, VALUE_DATE, VALUE_QUANTITY, VALUE_STRINGFields inherited from class org.hl7.fhir.r4.model.DomainResource
contained, extension, modifierExtension, textFields 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.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET -
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor for the parser.ChEmedEprObservationPml(UUID entryUuid, EmedPadvEntryType padvType) Constructor that pre-populates fields. -
Method Summary
Modifier and TypeMethodDescriptioncopy()voidcopyValues(org.hl7.fhir.r4.model.Observation dst) Copies the content of the observation to another observation.org.hl7.fhir.r4.model.ReferenceGets the author document element in the observation.protected Class<ChEmedEprMedicationRequestChangedPml>protected Class<ChEmedEprMedicationStatementChangedPml>Gets the parent document element.booleanReturns whether the parent document reference exists.setAuthorDocument(@Nullable org.hl7.fhir.r4.model.Reference reference) Sets the reference to the original author of the document.setParentDocumentElement(ChEmedExtPharmaceuticalAdvice parentDocument) Sets the parent document reference.setPerformer(org.hl7.fhir.r4.model.RelatedPerson performer) Sets the author and her/his organization of the medical decision.setPerformer(ChCorePatientEpr performer) Sets the author and her/his organization of the medical decision.setPerformer(Author performer) Sets a reference to the received auhor as performer (medical author)setPerformer(ChEmedEprPractitionerRole performer) Sets the author and her/his organization of the medical decision.Methods inherited from class org.projecthusky.fhir.emed.ch.epr.resource.ChEmedEprObservation
getDispenseElement, getEmedType, getMedicationRequestChangedReference, getMedicationStatementChangedReference, getPrescriptionElement, getTreatmentPlanElement, hasDispense, hasMedicationRequestChanged, hasMedicationStatementChanged, hasPadvEntryType, hasPrescription, hasTreatmentPlan, resolveDisReference, resolveIdentifier, resolveIssued, resolveMedicalAuthor, resolveMedicalAuthorshipTimestamp, resolveMedicationRequestChanged, resolveMedicationStatementChanged, resolveMtpReference, resolveNote, resolvePadvEntryType, resolvePreReference, resolveReference, resolveSubject, setDispenseElement, setIssued, setMedicationRequestChanged, setMedicationStatementChanged, setNote, setPadvEntryType, setPadvEntryType, setPrescriptionElement, setTreatmentPlanElementMethods inherited from class org.hl7.fhir.r4.model.Observation
addBasedOn, addBasedOn, addCategory, addCategory, addChild, addComponent, addComponent, addDerivedFrom, addDerivedFrom, addFocus, addFocus, addHasMember, addHasMember, addIdentifier, addIdentifier, addInterpretation, addInterpretation, addNote, addNote, addPartOf, addPartOf, addPerformer, addPerformer, addReferenceRange, addReferenceRange, equalsDeep, equalsShallow, fhirType, getBasedOn, getBasedOnFirstRep, getBasedOnTarget, getBodySite, getCategory, getCategoryFirstRep, getCode, getComponent, getComponentFirstRep, getDataAbsentReason, getDerivedFrom, getDerivedFromFirstRep, getDerivedFromTarget, getDevice, getDeviceTarget, getEffective, getEffectiveDateTimeType, getEffectiveInstantType, getEffectivePeriod, getEffectiveTiming, getEncounter, getEncounterTarget, getFocus, getFocusFirstRep, getFocusTarget, getHasMember, getHasMemberFirstRep, getHasMemberTarget, getIdentifier, getIdentifierFirstRep, getInterpretation, getInterpretationFirstRep, getIssued, getIssuedElement, getMethod, getNamedProperty, getNote, getNoteFirstRep, getPartOf, getPartOfFirstRep, getPartOfTarget, getPerformer, getPerformerFirstRep, getPerformerTarget, getProperty, getReferenceRange, getReferenceRangeFirstRep, getResourceType, getSpecimen, getSpecimenTarget, getStatus, getStatusElement, getSubject, getSubjectTarget, getTypesForProperty, getValue, getValueBooleanType, getValueCodeableConcept, getValueDateTimeType, getValueIntegerType, getValuePeriod, getValueQuantity, getValueRange, getValueRatio, getValueSampledData, getValueStringType, getValueTimeType, hasBasedOn, hasBodySite, hasCategory, hasCode, hasComponent, hasDataAbsentReason, hasDerivedFrom, hasDevice, hasEffective, hasEffectiveDateTimeType, hasEffectiveInstantType, hasEffectivePeriod, hasEffectiveTiming, hasEncounter, hasFocus, hasHasMember, hasIdentifier, hasInterpretation, hasIssued, hasIssuedElement, hasMethod, hasNote, hasPartOf, hasPerformer, hasReferenceRange, hasSpecimen, hasStatus, hasStatusElement, hasSubject, hasValue, hasValueBooleanType, hasValueCodeableConcept, hasValueDateTimeType, hasValueIntegerType, hasValuePeriod, hasValueQuantity, hasValueRange, hasValueRatio, hasValueSampledData, hasValueStringType, hasValueTimeType, isEmpty, listChildren, makeProperty, removeChild, setBasedOn, setBodySite, setCategory, setCode, setComponent, setDataAbsentReason, setDerivedFrom, setDevice, setDeviceTarget, setEffective, setEncounter, setEncounterTarget, setFocus, setHasMember, setIdentifier, setInterpretation, setIssued, setIssuedElement, setMethod, setNote, setPartOf, setPerformer, setProperty, setProperty, setReferenceRange, setSpecimen, setSpecimenTarget, setStatus, setStatusElement, setSubject, setSubjectTarget, setValue, typedCopyMethods inherited from class org.hl7.fhir.r4.model.DomainResource
addContained, addExtension, addExtension, addExtension, addModifierExtension, addModifierExtension, checkNoModifiers, copyValues, getContained, getExtension, getExtensionByUrl, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getText, hasContained, hasExtension, hasExtension, hasModifierExtension, hasText, setContained, setExtension, setModifierExtension, setTextMethods 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.projecthusky.fhir.emed.ch.epr.resource.ChEmedEprDocumentAuthorable
copyAuthorDocumentValues, hasAuthorDocument, resolveAuthorDocument, setAuthorDocument, setAuthorDocumentMethods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, hasFormatComment, isEmptyMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getMeta, getStructureFhirVersionEnum, isDeleted, setId
-
Field Details
-
authorDocument
protected @Nullable org.hl7.fhir.r4.model.Reference authorDocumentAuthor of the original document if different from the author of the medical decision (Observation.performer), see also 'Guidance - Different Authors' -
parentDocument
Reference to the original document.
-
-
Constructor Details
-
ChEmedEprObservationPml
public ChEmedEprObservationPml()Empty constructor for the parser. -
ChEmedEprObservationPml
Constructor that pre-populates fields.- Parameters:
entryUuid- The medication statement id.padvType- The pharmaceutical advice type.
-
-
Method Details
-
getMedicationStatementChangedType
- Specified by:
getMedicationStatementChangedTypein classChEmedEprObservation<ChEmedEprMedicationStatementChangedPml,ChEmedEprMedicationRequestChangedPml> - Returns:
- The
ChEmedEprMedicationStatementPmlclass, since it is the resulting class of parsing the medication statement changed resources in a PML document (parser limitation).
-
getMedicationRequestChangedType
- Specified by:
getMedicationRequestChangedTypein classChEmedEprObservation<ChEmedEprMedicationStatementChangedPml,ChEmedEprMedicationRequestChangedPml> - Returns:
- The
ChEmedEprMedicationRequestChangedPmlclass, since it is the resulting class of parsing the medication request changed resources in a PML document (parser limitation).
-
getAuthorDocument
public org.hl7.fhir.r4.model.Reference getAuthorDocument()Gets the author document element in the observation.- Specified by:
getAuthorDocumentin interfaceChEmedEprDocumentAuthorable<ChEmedEprObservationPml>- Returns:
- the author document element.
-
setAuthorDocument
public ChEmedEprObservationPml setAuthorDocument(@Nullable org.hl7.fhir.r4.model.Reference reference) Sets the reference to the original author of the document.- Specified by:
setAuthorDocumentin interfaceChEmedEprDocumentAuthorable<ChEmedEprObservationPml>- Parameters:
reference- The reference to be set as authorDocument.- Returns:
- this.
-
setPerformer
Sets the author and her/his organization of the medical decision.- Parameters:
performer- the author and her/his organization of the medical decision.- Returns:
- this.
-
setPerformer
Sets the author and her/his organization of the medical decision.- Parameters:
performer- the author and her/his organization of the medical decision.- Returns:
- this.
-
setPerformer
Sets the author and her/his organization of the medical decision.- Parameters:
performer- the author and her/his organization of the medical decision.- Returns:
- this.
-
setPerformer
Sets a reference to the received auhor as performer (medical author)- Parameters:
performer- The author to be referenced as performer (medical author).- Returns:
- this.
-
getParentDocumentElement
Gets the parent document element. If it doesn't exist, it is created.- Returns:
- the parent document element.
-
setParentDocumentElement
public ChEmedEprObservationPml setParentDocumentElement(ChEmedExtPharmaceuticalAdvice parentDocument) Sets the parent document reference.- Parameters:
parentDocument- the parent document reference.- Returns:
- this.
-
hasParentDocument
public boolean hasParentDocument()Returns whether the parent document reference exists.- Returns:
trueif the parent document reference exists,falseotherwise.
-
copy
- Overrides:
copyin classorg.hl7.fhir.r4.model.Observation
-
copyValues
public void copyValues(org.hl7.fhir.r4.model.Observation dst) Copies the content of the observation to another observation.- Overrides:
copyValuesin classChEmedEprObservation<ChEmedEprMedicationStatementChangedPml,ChEmedEprMedicationRequestChangedPml> - Parameters:
dst- The destination observation.
-