Class ChEmedEprMedicationRequestChangedPml
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.MedicationRequest
org.projecthusky.fhir.emed.ch.epr.resource.ChEmedEprMedicationRequest
org.projecthusky.fhir.emed.ch.epr.resource.padv.ChEmedEprMedicationRequestChanged
org.projecthusky.fhir.emed.ch.epr.resource.pml.ChEmedEprMedicationRequestChangedPml
- 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<ChEmedEprMedicationRequestChangedPml>,ChEmedEprEntry
public class ChEmedEprMedicationRequestChangedPml
extends ChEmedEprMedicationRequestChanged
implements ChEmedEprDocumentAuthorable<ChEmedEprMedicationRequestChangedPml>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hl7.fhir.r4.model.MedicationRequest
org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestDispenseRequestComponent, org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestDispenseRequestInitialFillComponent, org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestIntent, org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestIntentEnumFactory, org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestPriority, org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestPriorityEnumFactory, org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestStatus, org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestStatusEnumFactory, org.hl7.fhir.r4.model.MedicationRequest.MedicationRequestSubstitutionComponent -
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 @Nullable ChEmedExtPharmaceuticalAdviceReference to the original document.Fields inherited from class org.projecthusky.fhir.emed.ch.epr.resource.ChEmedEprMedicationRequest
treatmentPlanFields inherited from class org.hl7.fhir.r4.model.MedicationRequest
authoredOn, AUTHOREDON, basedOn, basedOnTarget, category, CATEGORY, CODE, courseOfTherapyType, DATE, detectedIssue, detectedIssueTarget, dispenseRequest, doNotPerform, dosageInstruction, encounter, ENCOUNTER, encounterTarget, eventHistory, eventHistoryTarget, groupIdentifier, identifier, IDENTIFIER, INCLUDE_ENCOUNTER, INCLUDE_INTENDED_DISPENSER, INCLUDE_INTENDED_PERFORMER, INCLUDE_MEDICATION, INCLUDE_PATIENT, INCLUDE_REQUESTER, INCLUDE_SUBJECT, instantiatesCanonical, instantiatesUri, insurance, insuranceTarget, INTENDED_DISPENSER, INTENDED_PERFORMER, INTENDED_PERFORMERTYPE, intent, INTENT, medication, MEDICATION, note, PATIENT, performer, performerTarget, performerType, priority, PRIORITY, priorPrescription, priorPrescriptionTarget, reasonCode, reasonReference, reasonReferenceTarget, recorder, recorderTarget, reported, requester, REQUESTER, requesterTarget, SP_AUTHOREDON, SP_CATEGORY, SP_CODE, SP_DATE, SP_ENCOUNTER, SP_IDENTIFIER, SP_INTENDED_DISPENSER, SP_INTENDED_PERFORMER, SP_INTENDED_PERFORMERTYPE, SP_INTENT, SP_MEDICATION, SP_PATIENT, SP_PRIORITY, SP_REQUESTER, SP_STATUS, SP_SUBJECT, status, STATUS, statusReason, subject, SUBJECT, subjectTarget, substitution, supportingInformation, supportingInformationTargetFields 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.ChEmedEprMedicationRequestChangedPml(UUID entryUuid) Constructor that pre-populates fields.Constructor that copies the content of the PML med request to a PML changed request. -
Method Summary
Modifier and TypeMethodDescriptioncopy()voidcopyValues(org.hl7.fhir.r4.model.MedicationRequest 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.ChEmedEprMedicationRequest
addDosageAdditionalEntry, addDosageInstruction, addDosageInstruction, getDosageInstruction, getDosageInstructionFirstRep, getEmedType, getTreatmentPlanElement, getTreatmentReason, hasDosageAdditionalEntry, hasDosageBaseEntry, hasTreatmentPlan, hasTreatmentReason, resolveAdditionalDosage, resolveAuthoredOn, resolveBaseDosage, resolveEffectiveDosageInstructions, resolveIdentifier, resolveMedicalAuthor, resolveMedicalAuthorshipTimestamp, resolveMedication, resolveMtpReference, resolvePatient, resolveRequester, resolveStatus, resolveSubject, resolveSubstitution, setDosageBaseEntry, setIdentifier, setMedicationReference, setPatient, setRequester, setTreatmentPlanElementMethods inherited from class org.hl7.fhir.r4.model.MedicationRequest
addBasedOn, addBasedOn, addCategory, addCategory, addChild, addDetectedIssue, addDetectedIssue, addDetectedIssueTarget, addEventHistory, addEventHistory, addEventHistoryTarget, addIdentifier, addIdentifier, addInstantiatesCanonical, addInstantiatesCanonicalElement, addInstantiatesUri, addInstantiatesUriElement, addInsurance, addInsurance, addNote, addNote, addReasonCode, addReasonCode, addReasonReference, addReasonReference, addSupportingInformation, addSupportingInformation, equalsDeep, equalsShallow, fhirType, getAuthoredOn, getAuthoredOnElement, getBasedOn, getBasedOnFirstRep, getBasedOnTarget, getCategory, getCategoryFirstRep, getCourseOfTherapyType, getDetectedIssue, getDetectedIssueFirstRep, getDetectedIssueTarget, getDispenseRequest, getDoNotPerform, getDoNotPerformElement, getEncounter, getEncounterTarget, getEventHistory, getEventHistoryFirstRep, getEventHistoryTarget, getGroupIdentifier, getIdentifier, getIdentifierFirstRep, getInstantiatesCanonical, getInstantiatesUri, getInsurance, getInsuranceFirstRep, getInsuranceTarget, getIntent, getIntentElement, getMedication, getMedicationCodeableConcept, getMedicationReference, getNamedProperty, getNote, getNoteFirstRep, getPerformer, getPerformerTarget, getPerformerType, getPriority, getPriorityElement, getPriorPrescription, getPriorPrescriptionTarget, getProperty, getReasonCode, getReasonCodeFirstRep, getReasonReference, getReasonReferenceFirstRep, getReasonReferenceTarget, getRecorder, getRecorderTarget, getReported, getReportedBooleanType, getReportedReference, getRequester, getRequesterTarget, getResourceType, getStatus, getStatusElement, getStatusReason, getSubject, getSubjectTarget, getSubstitution, getSupportingInformation, getSupportingInformationFirstRep, getSupportingInformationTarget, getTypesForProperty, hasAuthoredOn, hasAuthoredOnElement, hasBasedOn, hasCategory, hasCourseOfTherapyType, hasDetectedIssue, hasDispenseRequest, hasDoNotPerform, hasDoNotPerformElement, hasDosageInstruction, hasEncounter, hasEventHistory, hasGroupIdentifier, hasIdentifier, hasInstantiatesCanonical, hasInstantiatesCanonical, hasInstantiatesUri, hasInstantiatesUri, hasInsurance, hasIntent, hasIntentElement, hasMedication, hasMedicationCodeableConcept, hasMedicationReference, hasNote, hasPerformer, hasPerformerType, hasPriority, hasPriorityElement, hasPriorPrescription, hasReasonCode, hasReasonReference, hasRecorder, hasReported, hasReportedBooleanType, hasReportedReference, hasRequester, hasStatus, hasStatusElement, hasStatusReason, hasSubject, hasSubstitution, hasSupportingInformation, isEmpty, listChildren, makeProperty, removeChild, setAuthoredOn, setAuthoredOnElement, setBasedOn, setCategory, setCourseOfTherapyType, setDetectedIssue, setDispenseRequest, setDoNotPerform, setDoNotPerformElement, setDosageInstruction, setEncounter, setEncounterTarget, setEventHistory, setGroupIdentifier, setIdentifier, setInstantiatesCanonical, setInstantiatesUri, setInsurance, setIntent, setIntentElement, setMedication, setNote, setPerformer, setPerformerTarget, setPerformerType, setPriority, setPriorityElement, setPriorPrescription, setPriorPrescriptionTarget, setProperty, setProperty, setReasonCode, setReasonReference, setRecorder, setRecorderTarget, setReported, setRequester, setRequesterTarget, setStatus, setStatusElement, setStatusReason, setSubject, setSubjectTarget, setSubstitution, setSupportingInformation, 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. -
parentDocument
Reference to the original document.
-
-
Constructor Details
-
ChEmedEprMedicationRequestChangedPml
public ChEmedEprMedicationRequestChangedPml()Empty constructor for the parser. -
ChEmedEprMedicationRequestChangedPml
Constructor that pre-populates fields.- Parameters:
entryUuid- the medication request ID.
-
ChEmedEprMedicationRequestChangedPml
Constructor that copies the content of the PML med request to a PML changed request. This is used as a workaround due to the limitations of HAPI's parser that will only parse all the medication requests to a single type. This method allows a custom parser (or other) to create aChEmedEprMedicationRequestChangedPmlby copying the values from a parsedChEmedEprMedicationRequestPmlrequest.If the passed medication request 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
ChEmedEprMedicationRequestChangedPmlclass, 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<ChEmedEprMedicationRequestChangedPml>- Returns:
- the author reference of the original document
-
setAuthorDocument
public ChEmedEprMedicationRequestChangedPml setAuthorDocument(@Nullable org.hl7.fhir.r4.model.Reference reference) Sets the reference to the original author of the document.- Specified by:
setAuthorDocumentin interfaceChEmedEprDocumentAuthorable<ChEmedEprMedicationRequestChangedPml>- 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 ChEmedEprMedicationRequestChangedPml 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 classChEmedEprMedicationRequestChanged
-
copyValues
public void copyValues(org.hl7.fhir.r4.model.MedicationRequest dst) Copies the content of the medication request to a destination medication request.- Overrides:
copyValuesin classChEmedEprMedicationRequest- Parameters:
dst- The destination medication request.
-