Class ChEmedEprMedicationDis
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.Medication
org.projecthusky.fhir.emed.ch.epr.resource.ChEmedEprMedication
org.projecthusky.fhir.emed.ch.epr.resource.dis.ChEmedEprMedicationDis
- 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
The HAPI custom structure for CH-EMED-EPR Medication (DIS).
- Author:
- Ronaldo Loureiro
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hl7.fhir.r4.model.Medication
org.hl7.fhir.r4.model.Medication.MedicationBatchComponent, org.hl7.fhir.r4.model.Medication.MedicationIngredientComponent, org.hl7.fhir.r4.model.Medication.MedicationStatus, org.hl7.fhir.r4.model.Medication.MedicationStatusEnumFactory
-
Field Summary
Fields inherited from class org.hl7.fhir.r4.model.Medication
amount, batch, code, CODE, EXPIRATION_DATE, form, FORM, identifier, IDENTIFIER, INCLUDE_INGREDIENT, INCLUDE_MANUFACTURER, ingredient, INGREDIENT, INGREDIENT_CODE, LOT_NUMBER, manufacturer, MANUFACTURER, manufacturerTarget, SP_CODE, SP_EXPIRATION_DATE, SP_FORM, SP_IDENTIFIER, SP_INGREDIENT, SP_INGREDIENT_CODE, SP_LOT_NUMBER, SP_MANUFACTURER, SP_STATUS, status, STATUS
Fields inherited from class org.hl7.fhir.r4.model.DomainResource
contained, extension, modifierExtension, text
Fields inherited from class org.hl7.fhir.r4.model.Resource
id, implicitRules, language, meta
Fields inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
RES_ID, SP_RES_ID
Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Resolves the package size.Returns the manufacturer or throws.setAmount
(ChEmedRatioWithEmedUnits amount) Sets the package size.Methods inherited from class org.projecthusky.fhir.emed.ch.epr.resource.ChEmedEprMedication
addActiveIngredient, hasAtc, hasCodeForSystem, hasGtin, resolveActiveIngredients, resolveAtcCode, resolveCodeForSystem, resolveForm, resolveGtinCode, resolveMedicationName, setAtc, setForm, setForm, setGtin
Methods inherited from class org.hl7.fhir.r4.model.Medication
addChild, addIdentifier, addIdentifier, addIngredient, addIngredient, copyValues, equalsDeep, equalsShallow, fhirType, getAmount, getBatch, getCode, getForm, getIdentifier, getIdentifierFirstRep, getIngredient, getIngredientFirstRep, getManufacturer, getManufacturerTarget, getNamedProperty, getProperty, getResourceType, getStatus, getStatusElement, getTypesForProperty, hasAmount, hasBatch, hasCode, hasForm, hasIdentifier, hasIngredient, hasManufacturer, hasStatus, hasStatusElement, isEmpty, listChildren, makeProperty, removeChild, setAmount, setBatch, setCode, setForm, setIdentifier, setIngredient, setManufacturer, setManufacturerTarget, setProperty, setProperty, setStatus, setStatusElement, typedCopy
Methods 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, setText
Methods 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, setMeta
Methods inherited from class org.hl7.fhir.r4.model.BaseResource
getStructureFhirVersionEnum, isResource, setId
Methods 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, setUserDataINN
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, hasFormatComment
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getMeta, getStructureFhirVersionEnum, isDeleted, setId
-
Constructor Details
-
ChEmedEprMedicationDis
public ChEmedEprMedicationDis()Empty constructor for the parser.
-
-
Method Details
-
resolveManufacturer
@ExpectsValidResource public ChEmedOrganization resolveManufacturer() throws InvalidEmedContentExceptionReturns the manufacturer or throws.- Returns:
- the manufacturer.
- Throws:
InvalidEmedContentException
- if the manufacturer is missing.
-
resolveAmount
@ExpectsValidResource public ChEmedRatioWithEmedUnits resolveAmount() throws InvalidEmedContentExceptionResolves the package size.- Overrides:
resolveAmount
in classChEmedEprMedication
- Returns:
- the package size.
- Throws:
InvalidEmedContentException
- if the package size is missing or of the wrong type.
-
setAmount
Sets the package size.- Parameters:
amount
- the package size.- Returns:
- this.
-
copy
- Overrides:
copy
in classChEmedEprMedication
-