Class ChEmedEprMedicationStatementChangedPml
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.MedicationStatement
org.projecthusky.fhir.emed.ch.epr.resource.ChEmedEprMedicationStatement
org.projecthusky.fhir.emed.ch.epr.resource.padv.ChEmedEprMedicationStatementChanged
org.projecthusky.fhir.emed.ch.epr.resource.pml.ChEmedEprMedicationStatementChangedPml
- 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<ChEmedEprMedicationStatementChangedPml>,ChEmedEprEntry
public class ChEmedEprMedicationStatementChangedPml
extends ChEmedEprMedicationStatementChanged
implements ChEmedEprDocumentAuthorable<ChEmedEprMedicationStatementChangedPml>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hl7.fhir.r4.model.MedicationStatement
org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatus, org.hl7.fhir.r4.model.MedicationStatement.MedicationStatementStatusEnumFactory -
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.protected static final Stringprotected @Nullable ChEmedExtPharmaceuticalAdviceReference to the original document.Fields inherited from class org.projecthusky.fhir.emed.ch.epr.resource.ChEmedEprMedicationStatement
substitutionFields inherited from class org.hl7.fhir.r4.model.MedicationStatement
basedOn, basedOnTarget, category, CATEGORY, CODE, context, CONTEXT, contextTarget, dateAsserted, derivedFrom, derivedFromTarget, dosage, effective, EFFECTIVE, identifier, IDENTIFIER, INCLUDE_CONTEXT, INCLUDE_MEDICATION, INCLUDE_PART_OF, INCLUDE_PATIENT, INCLUDE_SOURCE, INCLUDE_SUBJECT, informationSource, informationSourceTarget, medication, MEDICATION, note, PART_OF, partOf, partOfTarget, PATIENT, reasonCode, reasonReference, reasonReferenceTarget, SOURCE, SP_CATEGORY, SP_CODE, SP_CONTEXT, SP_EFFECTIVE, SP_IDENTIFIER, SP_MEDICATION, SP_PART_OF, SP_PATIENT, SP_SOURCE, SP_STATUS, SP_SUBJECT, status, STATUS, statusReason, subject, SUBJECT, subjectTargetFields 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.ChEmedEprMedicationStatementChangedPml(UUID entryUuid) Constructor that pre-populates fields.Constructor that copies the content of the PML med statement to a PML changed statement. -
Method Summary
Modifier and TypeMethodDescriptioncopy()voidcopyValues(org.hl7.fhir.r4.model.MedicationStatement dst) Copies the content of the medication request to a destination medication request.org.hl7.fhir.r4.model.ReferenceGets the author reference of the original document if different from the author of the medical decision.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.Methods inherited from class org.projecthusky.fhir.emed.ch.epr.resource.ChEmedEprMedicationStatement
addDosage, addDosage, addDosageAdditionalEntry, getDosage, getDosageFirstRep, getEmedType, getSubstitution, getTreatmentReason, hasDosageAdditionalEntry, hasDosageBaseEntry, hasSubstitution, hasTreatmentReason, resolveAdditionalDosage, resolveAsserted, resolveBaseDosage, resolveEffectiveDosageInstructions, resolveIdentifier, resolveInformationSource, resolveMedicalAuthor, resolveMedicalAuthorshipTimestamp, resolveMedication, resolveSubject, resolveSubstitution, setDosageBaseEntry, setIdentifier, setInformationSource, setSubstitution, setSubstitution, setSubstitutionElement, setTreatmentReasonMethods inherited from class org.hl7.fhir.r4.model.MedicationStatement
addBasedOn, addBasedOn, addChild, addDerivedFrom, addDerivedFrom, addIdentifier, addIdentifier, addNote, addNote, addPartOf, addPartOf, addReasonCode, addReasonCode, addReasonReference, addReasonReference, addStatusReason, addStatusReason, equalsDeep, equalsShallow, fhirType, getBasedOn, getBasedOnFirstRep, getBasedOnTarget, getCategory, getContext, getContextTarget, getDateAsserted, getDateAssertedElement, getDerivedFrom, getDerivedFromFirstRep, getDerivedFromTarget, getEffective, getEffectiveDateTimeType, getEffectivePeriod, getIdentifier, getIdentifierFirstRep, getInformationSource, getInformationSourceTarget, getMedication, getMedicationCodeableConcept, getMedicationReference, getNamedProperty, getNote, getNoteFirstRep, getPartOf, getPartOfFirstRep, getPartOfTarget, getProperty, getReasonCode, getReasonCodeFirstRep, getReasonReference, getReasonReferenceFirstRep, getReasonReferenceTarget, getResourceType, getStatus, getStatusElement, getStatusReason, getStatusReasonFirstRep, getSubject, getSubjectTarget, getTypesForProperty, hasBasedOn, hasCategory, hasContext, hasDateAsserted, hasDateAssertedElement, hasDerivedFrom, hasDosage, hasEffective, hasEffectiveDateTimeType, hasEffectivePeriod, hasIdentifier, hasInformationSource, hasMedication, hasMedicationCodeableConcept, hasMedicationReference, hasNote, hasPartOf, hasReasonCode, hasReasonReference, hasStatus, hasStatusElement, hasStatusReason, hasSubject, isEmpty, listChildren, makeProperty, removeChild, setBasedOn, setCategory, setContext, setContextTarget, setDateAsserted, setDateAssertedElement, setDerivedFrom, setDosage, setEffective, setIdentifier, setInformationSource, setInformationSourceTarget, setMedication, setNote, setPartOf, setProperty, setProperty, setReasonCode, setReasonReference, setStatus, setStatusElement, setStatusReason, setSubject, setSubjectTarget, 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
-
PARENT_DOCUMENT_URL
- See Also:
-
authorDocument
protected @Nullable org.hl7.fhir.r4.model.Reference authorDocumentAuthor of the original document if different from the author of the medical decision. -
parentDocument
Reference to the original document.
-
-
Constructor Details
-
ChEmedEprMedicationStatementChangedPml
public ChEmedEprMedicationStatementChangedPml()Empty constructor for the parser. -
ChEmedEprMedicationStatementChangedPml
Constructor that pre-populates fields.- Parameters:
entryUuid- the medication request ID.
-
ChEmedEprMedicationStatementChangedPml
Constructor that copies the content of the PML med statement to a PML changed statement. This is used as a workaround due to the limitations of HAPI's parser that will only parse all the medication statements to a single type. This method allows a custom parser (or other) to create aChEmedEprMedicationStatementChangedPmlby copying the values from a parsedChEmedEprMedicationStatementPmlstatement.If the passed medication statement has the parentDocument extension (as it should if it passed validation), it will be part of the extensions (and not recognized as parentDocument by the
ChEmedEprMedicationStatementChangedPmlclass, since the URLs differ). This constructor will move it from the extensions to theparentDocumentcustom property of this class.- Parameters:
request- The PML simple request.
-
-
Method Details
-
getAuthorDocument
public org.hl7.fhir.r4.model.Reference getAuthorDocument()Gets the author reference of the original document if different from the author of the medical decision. If it doesn't exist, it's created.- Specified by:
getAuthorDocumentin interfaceChEmedEprDocumentAuthorable<ChEmedEprMedicationStatementChangedPml>- Returns:
- the author reference of the original document
-
setAuthorDocument
public ChEmedEprMedicationStatementChangedPml setAuthorDocument(@Nullable org.hl7.fhir.r4.model.Reference reference) Sets the reference to the original author of the document.- Specified by:
setAuthorDocumentin interfaceChEmedEprDocumentAuthorable<ChEmedEprMedicationStatementChangedPml>- Parameters:
reference- The reference to be set as authorDocument.- Returns:
- this.
-
getParentDocumentElement
Gets the parent document element. If it doesn't exist, it is created.- Returns:
- the parent document element.
-
setParentDocumentElement
public ChEmedEprMedicationStatementChangedPml 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 classChEmedEprMedicationStatementChanged
-
copyValues
public void copyValues(org.hl7.fhir.r4.model.MedicationStatement dst) Copies the content of the medication request to a destination medication request.- Overrides:
copyValuesin classChEmedEprMedicationStatement- Parameters:
dst- The destination medication request.
-