Medication
Return to types list
Type Properties
Properties
| Property | Value |
| id | 30cafccc-047d-4288-94ef-643571f7919d |
| name | Medication |
| uncreatable | false |
| immutable | false |
| singleton | false |
| transforms | form, mtt, stt, downversion |
|
Type Details
|
|
|
|
medication Information related to a medication.
| Name | Type | IsRequired | Description |
| name | t:codable-value | Yes | Name and clinical code for the medication. This name should be understandable to the person taking
the medication, such as the brand name. |
| generic-name | t:codable-value | No | Generic name and clinical code for the medication. The generic name is often the drug name rather than the brand name. |
| dose | t:general-measurement | No | Dose of the medication Examples: 1 tablet, 50 ml. |
| strength | t:general-measurement | No | Strength of medication. Example: 500mg, 10 mg/ml |
| frequency | t:general-measurement | No | How often the medication is taken. Example: 1 tablet per day, 2 every 6 hours, as needed. |
| route | t:codable-value | No | Route of medication. |
| indication | t:codable-value | No | Indication for medication. |
| date-started | d:approx-date-time | No | Date medication was started. |
| date-discontinued | d:approx-date-time | No | Date medication was discontinued. |
| prescribed | t:codable-value | No | The source of the prescription A medication that is prescribed by a physician should code "prescribed"
into this element. |
| prescription | med:Prescription | No | Details of a prescribed medication. |
|
Prescription Information related to a medication prescription.
| Name | Type | IsRequired | Description |
| prescribed-by | t:person | Yes | The person who prescribed this medication. |
| date-prescribed | d:approx-date-time | No | Date medication was prescribed. |
| amount-prescribed | t:general-measurement | No | Amount of medication prescribed |
| substitution | t:codable-value | No | Whether a substitution is permitted. Example: Dispense as written, substitution allowed |
| refills | t:nonNegativeInt | No | Number of medication refills. |
| days-supply | t:positiveInt | No | Number of days supply of medication. |
| prescription-expiration | d:date | No | Date the prescription expires. |
| instructions | t:codable-value | No | Medication instructions. |
|
Schema
Open schema as a file
Verify XML against this schema
<?xml version="1.0" encoding="utf-16"?>
<schema xmlns:med="urn:com.microsoft.wc.thing.medication" xmlns:t="urn:com.microsoft.wc.thing.types" xmlns:d="urn:com.microsoft.wc.dates" targetNamespace="urn:com.microsoft.wc.thing.medication" xmlns="http://www.w3.org/2001/XMLSchema">
<import schemaLocation="base.xsd" namespace="urn:com.microsoft.wc.thing.types" />
<import schemaLocation="dates.xsd" namespace="urn:com.microsoft.wc.dates" />
<annotation>
<documentation>
<type-id xmlns="http://www.w3.org/2001/XMLSchema">30cafccc-047d-4288-94ef-643571f7919d</type-id>
<type-name xmlns="http://www.w3.org/2001/XMLSchema">Medication</type-name>
<version xmlns="http://www.w3.org/2001/XMLSchema">2</version>
<wrapper-class-name xmlns="http://www.w3.org/2001/XMLSchema">Medication</wrapper-class-name>
<wrapper-class-fwlink xmlns="http://www.w3.org/2001/XMLSchema">136191</wrapper-class-fwlink>
<sample-xml-fwlink xmlns="http://www.w3.org/2001/XMLSchema">136192</sample-xml-fwlink>
<data-type-guide-fwlink xmlns="http://www.w3.org/2001/XMLSchema">136190</data-type-guide-fwlink>
<summary xmlns="http://www.w3.org/2001/XMLSchema">Information related to a medication.</summary>
<remarks xmlns="http://www.w3.org/2001/XMLSchema">This type contains information describing a medication, and is related to the medication fill type.Instances of the medication fill type are linked to instances of this type using related items. For example, if the medication is prescribed, the medication fill describes typical information that apharmacy would add.</remarks>
</documentation>
</annotation>
<complexType name="Prescription">
<annotation>
<documentation>
<summary xmlns="http://www.w3.org/2001/XMLSchema">Information related to a medication prescription.</summary>
</documentation>
</annotation>
<sequence>
<element name="prescribed-by" type="t:person">
<annotation>
<documentation>
<summary xmlns="http://www.w3.org/2001/XMLSchema">The person who prescribed this medication.</summary>
</documentation>
</annotation>
</element>
<element minOccurs="0" name="date-prescribed" type="d:approx-date-time">
<annotation>
<documentation>
<summary xmlns="http://www.w3.org/2001/XMLSchema">Date medication was prescribed.</summary>
</documentation>
</annotation>
</element>
<element minOccurs="0" name="amount-prescribed" type="t:general-measurement">
<annotation>
<documentation>
<summary xmlns="http://www.w3.org/2001/XMLSchema">Amount of medication prescribed</summary>
</documentation>
</annotation>
</element>
<element minOccurs="0" name="substitution" type="t:codable-value">
<annotation>
<documentation>
<summary xmlns="http://www.w3.org/2001/XMLSchema">Whether a substitution is permitted.</summary>
<remarks xmlns="http://www.w3.org/2001/XMLSchema">Example: Dispense as written, substitution allowed</remarks>
<preferred-vocabulary xmlns="http://www.w3.org/2001/XMLSchema">medication-substitution</preferred-vocabulary>
</documentation>
</annotation>
</element>
<element minOccurs="0" name="refills" type="t:nonNegativeInt">
<annotation>
<documentation>
<summary xmlns="http://www.w3.org/2001/XMLSchema">Number of medication refills.</summary>
</documentation>
</annotation>
</element>
<element minOccurs="0" name="days-supply" type="t:positiveInt">
<annotation>
<documentation>
<summary xmlns="http://www.w3.org/2001/XMLSchema">Number of days supply of medication.</summary>
</documentation>
</annotation>
</element>
<element minOccurs="0" name="prescription-expiration" type="d:date">
<annotation>
<documentation>
<summary xmlns="http://www.w3.org/2001/XMLSchema">Date the prescription expires.</summary>
</documentation>
</annotation>
</element>
<element minOccurs="0" name="instructions" type="t:codable-value">
<annotation>
<documentation>
<summary xmlns="http://www.w3.org/2001/XMLSchema">Medication instructions.</summary>
</documentation>
</annotation>
</element>
</sequence>
</complexType>
<element name="medication">
<complexType>
<annotation>
<documentation>
<summary xmlns="http://www.w3.org/2001/XMLSchema">Information related to a medication.</summary>
<remarks xmlns="http://www.w3.org/2001/XMLSchema">This type contains information describing a medication, and is related to the medication fill type.Instances of the medication fill type are linked to instances of this type using related items. For example, if the medication is prescribed, the medication fill describes typical information that apharmacy would add.</remarks>
</documentation>
</annotation>
<sequence>
<element name="name" type="t:codable-value">
<annotation>
<documentation>
<summary xmlns="http://www.w3.org/2001/XMLSchema">Name and clinical code for the medication.</summary>
<remarks xmlns="http://www.w3.org/2001/XMLSchema">This name should be understandable to the person takingthe medication, such as the brand name.</remarks>
<preferred-vocabulary xmlns="http://www.w3.org/2001/XMLSchema">Rxnorm</preferred-vocabulary>
<preferred-vocabulary xmlns="http://www.w3.org/2001/XMLSchema">NDC</preferred-vocabulary>
</documentation>
</annotation>
</element>
<element minOccurs="0" name="generic-name" type="t:codable-value">
<annotation>
<documentation>
<summary xmlns="http://www.w3.org/2001/XMLSchema">Generic name and clinical code for the medication.</summary>
<remarks xmlns="http://www.w3.org/2001/XMLSchema">The generic name is often the drug name rather than the brand name.</remarks>
<preferred-vocabulary xmlns="http://www.w3.org/2001/XMLSchema">Rxnorm</preferred-vocabulary>
<preferred-vocabulary xmlns="http://www.w3.org/2001/XMLSchema">NDC</preferred-vocabulary>
</documentation>
</annotation>
</element>
<element minOccurs="0" name="dose" type="t:general-measurement">
<annotation>
<documentation>
<summary xmlns="http://www.w3.org/2001/XMLSchema">Dose of the medication</summary>
<remarks xmlns="http://www.w3.org/2001/XMLSchema">Examples: 1 tablet, 50 ml.</remarks>
</documentation>
</annotation>
</element>
<element minOccurs="0" name="strength" type="t:general-measurement">
<annotation>
<documentation>
<summary xmlns="http://www.w3.org/2001/XMLSchema">Strength of medication.</summary>
<remarks xmlns="http://www.w3.org/2001/XMLSchema">Example: 500mg, 10 mg/ml</remarks>
</documentation>
</annotation>
</element>
<element minOccurs="0" name="frequency" type="t:general-measurement">
<annotation>
<documentation>
<summary xmlns="http://www.w3.org/2001/XMLSchema">How often the medication is taken.</summary>
<remarks xmlns="http://www.w3.org/2001/XMLSchema">Example: 1 tablet per day, 2 every 6 hours, as needed. </remarks>
</documentation>
</annotation>
</element>
<element minOccurs="0" name="route" type="t:codable-value">
<annotation>
<documentation>
<summary xmlns="http://www.w3.org/2001/XMLSchema">Route of medication.</summary>
<preferred-vocabulary xmlns="http://www.w3.org/2001/XMLSchema">medication-routes</preferred-vocabulary>
</documentation>
</annotation>
</element>
<element minOccurs="0" name="indication" type="t:codable-value">
<annotation>
<documentation>
<summary xmlns="http://www.w3.org/2001/XMLSchema">Indication for medication.</summary>
</documentation>
</annotation>
</element>
<element minOccurs="0" name="date-started" type="d:approx-date-time">
<annotation>
<documentation>
<summary xmlns="http://www.w3.org/2001/XMLSchema">Date medication was started.</summary>
</documentation>
</annotation>
</element>
<element minOccurs="0" name="date-discontinued" type="d:approx-date-time">
<annotation>
<documentation>
<summary xmlns="http://www.w3.org/2001/XMLSchema">Date medication was discontinued.</summary>
</documentation>
</annotation>
</element>
<element minOccurs="0" name="prescribed" type="t:codable-value">
<annotation>
<documentation>
<summary xmlns="http://www.w3.org/2001/XMLSchema">The source of the prescription </summary>
<remarks xmlns="http://www.w3.org/2001/XMLSchema">A medication that is prescribed by a physician should code "prescribed"into this element. </remarks>
<preferred-vocabulary xmlns="http://www.w3.org/2001/XMLSchema">medication-prescribed</preferred-vocabulary>
</documentation>
</annotation>
</element>
<element minOccurs="0" name="prescription" type="med:Prescription">
<annotation>
<documentation>
<summary xmlns="http://www.w3.org/2001/XMLSchema">Details of a prescribed medication. </summary>
</documentation>
</annotation>
</element>
</sequence>
</complexType>
</element>
</schema>
Columns
Columns describe this type in the STT and MTT transformations.
Columns
| Tag | Label | Type | Width |
| name | Name | String | 100 |
| indication | Reason for Taking | String | 100 |
| date-started | Date Started | String | 100 |
| date-discontinued | Date Stopped | String | 100 |
| prescribed-by | Prescribed By | String | 100 |
| generic-name | Generic Name | String | 100 |
| dose | Dose | String | 100 |
| strength | Strength | String | 100 |
| frequency | Frequency | String | 100 |
| wc-id | ID | String | 50 |
| wc-version | Version Stamp | String | 50 |
| wc-note | Note | String | 100 |
| wc-tags | Tags | String | 100 |
| wc-date | Effective Date | DateTime | 50 |
| wc-type | Type Name | String | 50 |
| wc-typeid | Type ID | String | 50 |
| wc-source | Source | String | 100 |
| wc-brands | Brands | String | 100 |
| wc-relatedthings | Related Items | String | 100 |
| wc-ispersonal | Is Personal | Boolean | 40 |
| wc-audit-personname | Changed by | String | 100 |
| wc-audit-date | Date | DateTime | 100 |
| wc-audit-action | Action | String | 100 |
| wc-audit-appname | App | String | 100 |
| wc-issigned | Signed | Boolean | 50 |
| wc-isdownversioned | Down Versioned | Boolean | 50 |
| wc-isupversioned | Up Versioned | Boolean | 50 |
| wc-state | Item State | String | 50 |
|