Skip to main content


class HS.FHIR.DTL.vR4.Model.Resource.Medication extends HS.FHIR.DTL.vR4.Model.Base.DomainResource

Definition of a Medication.

Property Inventory


Inherited description: ELEMENTQUALIFIED controls the format of exported XML. The ELEMENTQUALIFIED specification should be based on the elementFormDefault attribute of the schema that defines the type. To maintain compatibility, ELEMENTQUALIFIED will default to 1 (true) for literal format export and will default to 0 (false) for encoded or encoded12 format export. These were the values always previously assumed for the elementFormDefault attribute.

NOTE: Direct use of XMLExport method does not support the ELEMENTQUALIFIED. The export must be done using %XML.Writer or SOAP support.

parameter XMLNAME = Medication;
Inherited description: This parameter provides the default XMLNAME for the class. If it is empty then the class name will be used to construct a default XML name. The default XMLNAME is used as the top level tag when exporting objects and the export context did not provide an XML container name.
parameter XMLSEQUENCE = 1;
Inherited description: If the XMLSEQUENCE = 1, then the order of the XML elements must match the order of the class properties. This allows us to deal with XML where the same field appears multiple times and is distinguished by the order.
parameter XMLTYPE = Medication;
Inherited description: This parameter provides the default XMLTYPE for the class. If it is empty then the class name will be used to construct a default XML type.

The default XMLTYPE is used when naming and referencing this type in a schema and the schema context did not provide an XML type name.


property amount as HS.FHIR.DTL.vR4.Model.Datatype.Ratio (XMLNAME = "amount", XMLPROJECTION = "ELEMENT");

Amount of drug in package.

Property methods: amountGet(), amountGetSwizzled(), amountIsValid(), amountNewObject(), amountSet()
property batch as HS.FHIR.DTL.vR4.Model.Element.Medication.batch (XMLNAME = "batch", XMLPROJECTION = "ELEMENT");

Details about packaged medications.

Property methods: batchGet(), batchGetSwizzled(), batchIsValid(), batchNewObject(), batchSet()
property code as HS.FHIR.DTL.vR4.Model.Datatype.CodeableConcept (XMLNAME = "code", XMLPROJECTION = "ELEMENT");

Codes that identify this medication.

any FHIR4 code may be used; medication-codes shows EXAMPLE codes, but you may use codes from any ValueSet.

Property methods: codeGet(), codeGetSwizzled(), codeIsValid(), codeNewObject(), codeSet()
property form as HS.FHIR.DTL.vR4.Model.Datatype.CodeableConcept (XMLNAME = "form", XMLPROJECTION = "ELEMENT");

powder | tablets | capsule +

any FHIR4 code may be used; medication-form-codes shows EXAMPLE codes, but you may use codes from any ValueSet.

Property methods: formGet(), formGetSwizzled(), formIsValid(), formNewObject(), formSet()
property identifier as list of HS.FHIR.DTL.vR4.Model.Datatype.Identifier (XMLNAME = "identifier", XMLPROJECTION = "ELEMENT");

Business identifier for this medication.

Property methods: identifierBuildValueArray(), identifierCollectionToDisplay(), identifierCollectionToOdbc(), identifierDisplayToCollection(), identifierGet(), identifierGetObject(), identifierGetObjectId(), identifierGetSwizzled(), identifierIsValid(), identifierOdbcToCollection(), identifierSet(), identifierSetObject(), identifierSetObjectId()
property ingredient as list of HS.FHIR.DTL.vR4.Model.Element.Medication.ingredient (XMLNAME = "ingredient", XMLPROJECTION = "ELEMENT");

Active or inactive ingredient.

Property methods: ingredientBuildValueArray(), ingredientCollectionToDisplay(), ingredientCollectionToOdbc(), ingredientDisplayToCollection(), ingredientGet(), ingredientGetObject(), ingredientGetObjectId(), ingredientGetSwizzled(), ingredientIsValid(), ingredientOdbcToCollection(), ingredientSet(), ingredientSetObject(), ingredientSetObjectId()
property manufacturer as HS.FHIR.DTL.vR4.Model.Base.Reference (XMLNAME = "manufacturer", XMLPROJECTION = "ELEMENT");

Manufacturer of the item.


Property methods: manufacturerGet(), manufacturerGetSwizzled(), manufacturerIsValid(), manufacturerNewObject(), manufacturerSet()
property status as %String (MAXLEN = 1000000, XMLNAME = "status", XMLPROJECTION = "ATTRIBUTE");

active | inactive | entered-in-error

medication-status|4.0.1 is the REQUIRED FHIR4 ValueSet for codes; you may NOT extend medication-status|4.0.1 and you may NOT use codes from other ValueSets.

Property methods: statusDisplayToLogical(), statusGet(), statusIsValid(), statusLogicalToDisplay(), statusLogicalToOdbc(), statusNormalize(), statusSet()

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab