FHIR © HL7.org  |  Server Home  |  XIG Home  |  Server Source  |  FHIR  

FHIR IG Statistics: StructureDefinition/MedicationTreatmentLineLM

Packageihe.pharm.meow
TypeStructureDefinition
IdMedicationTreatmentLineLM
FHIR VersionR5
Sourcehttp://profiles.ihe.net/PHARM/MEOW/https://build.fhir.org/ig/IHE/pharm-meow/StructureDefinition-MedicationTreatmentLineLM.html
URLhttp://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicationTreatmentLineLM
Version0.1.0
Statusactive
Date2025-06-17T18:36:18+00:00
NameMedicationTreatmentLineLM
TitleMedication Treatment Line (model)
Realmuv
Authorityihe
DescriptionLogical model for representing one line/medication in medication overview.
CopyrightIHE http://www.ihe.net/Governance/#Intellectual_Property
Typehttp://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicationTreatmentLineLM
Kindlogical

Resources that use this resource

StructureDefinition
MedicationOverviewLMMedication Overview (model)

Resources that this resource uses

StructureDefinition
DosagingInformationDosaging (model)
MedicationTreatmentLMMedication Treatment (model)
MedicinalProductLMMedicinal product (model)
PractitionerLMPractitioner (model)

Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: StructureDefinition MedicationTreatmentLineLM

NameFlagsCard.TypeDescription & Constraintsdoco
.. MedicationTreatmentLineLM 0..*BaseMedication Treatment Line (model)
Instances of this logical model can be the target of a Reference
... identifier 0..*IdentifierUnique business identifier(s) for the medication treatment line
... medication[x] 1..1Medicinal product for which the treatment line refers to. Identification or sufficient description of the product.
.... medicationCodeableConceptCodeableConcept
.... medicationReferenceReference(Medicinal product (model))
... status 1..1CodeableConceptStatus of the treatment line entry
... version 0..1stringBusiness version of the treatment line
... timestamp 0..1dateTimeTimestamp of the version of the treatment line
... treatmentStatus 0..1CodeableConceptThe state of the actual treatment - taking, not taken...
... treatmentStatusReasonCode 0..1CodeableConceptThe reason - coded - for the treatment status - i.e. adverse events, refusal...
... treatmentStatusReasonText 0..1stringThe reason - free text - for the treatment status - i.e. adverse events, refusal...
... effectivePeriod 0..1BackboneElementThe period of time the treatment is in effect
... verificationInformation 0..*BackboneElementVerification of medication line
.... verifier 1..1Reference()HCP (or device, if authorized) verifying the treatments/overview
.... verificationTime 1..1dateTimeThe date and time when this medication treatment line was verified
... category 0..*CodeableConceptWhatever category for the treatment line. Categorisation of treatment lines is implementation-specific.
... medicationTreatment 0..*Reference(Medication Treatment (model))Reference or identifier of the group of lines that belong together
... indication 0..*CodeableConceptReason why the product has been prescribed to the patient, or why the patient claims to be taking it
... indicationText 0..1stringTextual explanation for why the medication has been prescribed or why the patient is taking it. This might not be allowed by some implementations.
... intendedUse 0..1CodeableConceptIntended Use of the medication - prophylaxis, therapy...
... usageInstructions 0..*DosagingInformationInstructions about administration of the product
... preparationInstructions 0..*stringAdditional instructions about preparation or dispense
... comment 0..*BackboneElementComment on the individual line
.... author 1..1Reference()Author of the comment (Pharmacist, doctor, social carer, patient, device, related person)
.... date 1..1dateTimetime of comment
.... commentText 1..1stringcontent of the comment
... substitution 0..1BackboneElementWhether and which type of substitution is allowed for this medication treatment line
.... substitutionType 1..1CodeableConceptThe type of substitution that is allowed.
.... substitutionTypeReason 0..1CodeableConceptCoded reason for the substitution requirement
.... substitutionTypeReasonText 0..1stringTextual reason for the substitution requirement
... recordingMetadata 1..1BackboneElementMetadata about reporting/authoring of the treatment line
.... recorder 1..1Reference()Person entering the statement by initiating a treatment or documenting a statement by a patient or another professional. The recorder may be different from the author.
.... recordedTime 1..1dateTimeTime of creation of the treatment line
.... patientReported 0..1booleanThe treatment line has been documented according to patient's statement
.... responsibleAuthor 0..1Reference(Practitioner (model))HCP who takes the clinical decision for the medication treatment line. If an author is not present, the responsibility of the medication line is with the recorder.
.... authoringTime 0..1dateTimeThe time the clinical decision was made by the responsibleAuthor. Normally, the same time as recording time when it's the same person.
... derivedFrom 0..*BackboneElementAny data object that this treatment line is derived from
.... request 0..*Reference()Prescriptions that have been the source for creating the unverified treatment line
.... statement 0..*Reference()Medication-related statements from patients, pharmacists, or other HCPs, that are the source for creating the unverified treatment line
.... dispensation 0..*Reference()Related dispensations that are not necessarily related to existing prescriptions/requests/statements.
.... administration 0..*Reference()Related administrations that are not necessarily related to existing prescriptions/requests/statements.
.... other 0..*Reference()Other related sources of information - CarePlan, Immunizations, Documents (e.g. Discharge letters)...

doco Documentation for this format

Source

{
  "resourceType": "StructureDefinition",
  "id": "MedicationTreatmentLineLM",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/logical-target",
      "valueBoolean": true
    }
  ],
  "url": "http://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicationTreatmentLineLM",
  "version": "0.1.0",
  "name": "MedicationTreatmentLineLM",
  "title": "Medication Treatment Line (model)",
  "status": "active",
  "date": "2025-06-17T18:36:18+00:00",
  "publisher": "Integrating the Healthcare Enterprise (IHE)",
  "contact": [
    {
      "name": "Integrating the Healthcare Enterprise (IHE)",
      "telecom": [
        {
          "system": "url",
          "value": "http://ihe.net"
        },
        {
          "system": "email",
          "value": "secretary@ihe.net"
        }
      ]
    },
    {
      "name": "Jose Costa Teixeira",
      "telecom": [
        {
          "system": "email",
          "value": "jose.a.teixeira@gmail.com",
          "use": "work"
        }
      ]
    }
  ],
  "description": "Logical model for representing one line/medication in medication overview.",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001"
        }
      ]
    }
  ],
  "copyright": "IHE http://www.ihe.net/Governance/#Intellectual_Property",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "http://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicationTreatmentLineLM",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
  "derivation": "specialization",
  "snapshot": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
        "valueString": "5.0.0"
      }
    ],
    "element": [
      {
        "id": "MedicationTreatmentLineLM",
        "path": "MedicationTreatmentLineLM",
        "short": "Medication Treatment Line (model)",
        "definition": "Logical model for representing one line/medication in medication overview.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Base",
          "min": 0,
          "max": "*"
        },
        "isModifier": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.identifier",
        "path": "MedicationTreatmentLineLM.identifier",
        "short": "Unique business identifier(s) for the medication treatment line",
        "definition": "Unique business identifier(s) for the medication treatment line",
        "min": 0,
        "max": "*",
        "base": {
          "path": "MedicationTreatmentLineLM.identifier",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.medication[x]",
        "path": "MedicationTreatmentLineLM.medication[x]",
        "short": "Medicinal product for which the treatment line refers to. Identification or sufficient description of the product.",
        "definition": "Medicinal product for which the treatment line refers to. Identification or sufficient description of the product.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.medication[x]",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicinalProductLM"
            ]
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.status",
        "path": "MedicationTreatmentLineLM.status",
        "short": "Status of the treatment line entry",
        "definition": "Status of the record, not the status of the treatment.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.status",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.version",
        "path": "MedicationTreatmentLineLM.version",
        "short": "Business version of the treatment line",
        "definition": "Business version of the treatment line",
        "min": 0,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.version",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.timestamp",
        "path": "MedicationTreatmentLineLM.timestamp",
        "short": "Timestamp of the version of the treatment line",
        "definition": "Timestamp of the version of the treatment line",
        "min": 0,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.timestamp",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.treatmentStatus",
        "path": "MedicationTreatmentLineLM.treatmentStatus",
        "short": "The state of the actual treatment - taking, not taken...",
        "definition": "The state of the actual treatment - taking, not taken...",
        "min": 0,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.treatmentStatus",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.treatmentStatusReasonCode",
        "path": "MedicationTreatmentLineLM.treatmentStatusReasonCode",
        "short": "The reason - coded - for the treatment status - i.e. adverse events, refusal...",
        "definition": "The reason - coded - for the treatment status - i.e. adverse events, refusal...",
        "min": 0,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.treatmentStatusReasonCode",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.treatmentStatusReasonText",
        "path": "MedicationTreatmentLineLM.treatmentStatusReasonText",
        "short": "The reason - free text - for the treatment status - i.e. adverse events, refusal...",
        "definition": "The reason - free text - for the treatment status - i.e. adverse events, refusal...",
        "min": 0,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.treatmentStatusReasonText",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.effectivePeriod",
        "path": "MedicationTreatmentLineLM.effectivePeriod",
        "short": "The period of time the treatment is in effect",
        "definition": "The period of time the treatment is in effect",
        "min": 0,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.effectivePeriod",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.verificationInformation",
        "path": "MedicationTreatmentLineLM.verificationInformation",
        "short": "Verification of medication line",
        "definition": "Verification of medication line. The overview is verified as a whole, but each line is equipped with the information. The actual functional meaning and impact of this validation depends on the implementation.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "MedicationTreatmentLineLM.verificationInformation",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.verificationInformation.id",
        "path": "MedicationTreatmentLineLM.verificationInformation.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "id"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.verificationInformation.extension",
        "path": "MedicationTreatmentLineLM.verificationInformation.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.verificationInformation.modifierExtension",
        "path": "MedicationTreatmentLineLM.verificationInformation.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.verificationInformation.verifier",
        "path": "MedicationTreatmentLineLM.verificationInformation.verifier",
        "short": "HCP (or device, if authorized) verifying the treatments/overview",
        "definition": "HCP (or device, if authorized) verifying the treatments/overview",
        "min": 1,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.verificationInformation.verifier",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.verificationInformation.verificationTime",
        "path": "MedicationTreatmentLineLM.verificationInformation.verificationTime",
        "short": "The date and time when this medication treatment line was verified",
        "definition": "The date and time when this medication treatment line was verified",
        "min": 1,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.verificationInformation.verificationTime",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.category",
        "path": "MedicationTreatmentLineLM.category",
        "short": "Whatever category for the treatment line. Categorisation of treatment lines is implementation-specific.",
        "definition": "Whatever category for the treatment line. Categorisation of treatment lines is implementation-specific.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "MedicationTreatmentLineLM.category",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.medicationTreatment",
        "path": "MedicationTreatmentLineLM.medicationTreatment",
        "short": "Reference or identifier of the group of lines that belong together",
        "definition": "Reference or identifier of the group of lines that belong together",
        "min": 0,
        "max": "*",
        "base": {
          "path": "MedicationTreatmentLineLM.medicationTreatment",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicationTreatmentLM"
            ]
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.indication",
        "path": "MedicationTreatmentLineLM.indication",
        "short": "Reason why the product has been prescribed to the patient, or why the patient claims to be taking it",
        "definition": "Reason why the product has been prescribed to the patient, or why the patient claims to be taking it",
        "min": 0,
        "max": "*",
        "base": {
          "path": "MedicationTreatmentLineLM.indication",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.indicationText",
        "path": "MedicationTreatmentLineLM.indicationText",
        "short": "Textual explanation for why the medication has been prescribed or why the patient is taking it. This might not be allowed by some implementations.",
        "definition": "Textual explanation for why the medication has been prescribed or why the patient is taking it. This might not be allowed by some implementations.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.indicationText",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.intendedUse",
        "path": "MedicationTreatmentLineLM.intendedUse",
        "short": "Intended Use of the medication - prophylaxis, therapy...",
        "definition": "Intended Use of the medication - prophylaxis, therapy...",
        "min": 0,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.intendedUse",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.usageInstructions",
        "path": "MedicationTreatmentLineLM.usageInstructions",
        "short": "Instructions about administration of the product",
        "definition": "Instructions about requested or actual administration of the product. This is repeatable to support complex or concurrent dosage instructions. e.g. take 1 per day for 3 weeks; 2x PRN",
        "min": 0,
        "max": "*",
        "base": {
          "path": "MedicationTreatmentLineLM.usageInstructions",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "http://profiles.ihe.net/PHARM/MEOW/StructureDefinition/DosagingInformation"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.preparationInstructions",
        "path": "MedicationTreatmentLineLM.preparationInstructions",
        "short": "Additional instructions about preparation or dispense",
        "definition": "Additional instructions about preparation or dispense",
        "min": 0,
        "max": "*",
        "base": {
          "path": "MedicationTreatmentLineLM.preparationInstructions",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.comment",
        "path": "MedicationTreatmentLineLM.comment",
        "short": "Comment on the individual line",
        "definition": "Comment on the individual line",
        "min": 0,
        "max": "*",
        "base": {
          "path": "MedicationTreatmentLineLM.comment",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.comment.id",
        "path": "MedicationTreatmentLineLM.comment.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "id"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.comment.extension",
        "path": "MedicationTreatmentLineLM.comment.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.comment.modifierExtension",
        "path": "MedicationTreatmentLineLM.comment.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.comment.author",
        "path": "MedicationTreatmentLineLM.comment.author",
        "short": "Author of the comment (Pharmacist, doctor, social carer, patient, device, related person)",
        "definition": "Author of the comment (Pharmacist, doctor, social carer, patient, device, related person)",
        "min": 1,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.comment.author",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.comment.date",
        "path": "MedicationTreatmentLineLM.comment.date",
        "short": "time of comment",
        "definition": "time of comment",
        "min": 1,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.comment.date",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.comment.commentText",
        "path": "MedicationTreatmentLineLM.comment.commentText",
        "short": "content of the comment",
        "definition": "content of the comment",
        "min": 1,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.comment.commentText",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.substitution",
        "path": "MedicationTreatmentLineLM.substitution",
        "short": "Whether and which type of substitution is allowed for this medication treatment line",
        "definition": "Whether and which type of substitution is allowed for this medication treatment line",
        "min": 0,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.substitution",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.substitution.id",
        "path": "MedicationTreatmentLineLM.substitution.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "id"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.substitution.extension",
        "path": "MedicationTreatmentLineLM.substitution.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.substitution.modifierExtension",
        "path": "MedicationTreatmentLineLM.substitution.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.substitution.substitutionType",
        "path": "MedicationTreatmentLineLM.substitution.substitutionType",
        "short": "The type of substitution that is allowed.",
        "definition": "The type of substitution that is allowed.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.substitution.substitutionType",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.substitution.substitutionTypeReason",
        "path": "MedicationTreatmentLineLM.substitution.substitutionTypeReason",
        "short": "Coded reason for the substitution requirement",
        "definition": "Coded reason for the substitution requirement",
        "min": 0,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.substitution.substitutionTypeReason",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.substitution.substitutionTypeReasonText",
        "path": "MedicationTreatmentLineLM.substitution.substitutionTypeReasonText",
        "short": "Textual reason for the substitution requirement",
        "definition": "Textual reason for the substitution requirement",
        "min": 0,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.substitution.substitutionTypeReasonText",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.recordingMetadata",
        "path": "MedicationTreatmentLineLM.recordingMetadata",
        "short": "Metadata about reporting/authoring of the treatment line",
        "definition": "Metadata about reporting/authoring of the treatment line",
        "min": 1,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.recordingMetadata",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.recordingMetadata.id",
        "path": "MedicationTreatmentLineLM.recordingMetadata.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "id"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.recordingMetadata.extension",
        "path": "MedicationTreatmentLineLM.recordingMetadata.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.recordingMetadata.modifierExtension",
        "path": "MedicationTreatmentLineLM.recordingMetadata.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.recordingMetadata.recorder",
        "path": "MedicationTreatmentLineLM.recordingMetadata.recorder",
        "short": "Person entering the statement by initiating a treatment or documenting a statement by a patient or another professional. The recorder may be different from the author.",
        "definition": "Person entering the statement by initiating a treatment or documenting a statement by a patient or another professional. The recorder may be different from the author.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.recordingMetadata.recorder",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.recordingMetadata.recordedTime",
        "path": "MedicationTreatmentLineLM.recordingMetadata.recordedTime",
        "short": "Time of creation of the treatment line",
        "definition": "Time of creation of the treatment line",
        "min": 1,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.recordingMetadata.recordedTime",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.recordingMetadata.patientReported",
        "path": "MedicationTreatmentLineLM.recordingMetadata.patientReported",
        "short": "The treatment line has been documented according to patient's statement",
        "definition": "The treatment line has been documented according to patient's statement",
        "min": 0,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.recordingMetadata.patientReported",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.recordingMetadata.responsibleAuthor",
        "path": "MedicationTreatmentLineLM.recordingMetadata.responsibleAuthor",
        "short": "HCP who takes the clinical decision for the medication treatment line. If an author is not present, the responsibility of the medication line is with the recorder.",
        "definition": "HCP who takes the clinical decision for the medication treatment line. If an author is not present, the responsibility of the medication line is with the recorder.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.recordingMetadata.responsibleAuthor",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://profiles.ihe.net/PHARM/MEOW/StructureDefinition/PractitionerLM"
            ]
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.recordingMetadata.authoringTime",
        "path": "MedicationTreatmentLineLM.recordingMetadata.authoringTime",
        "short": "The time the clinical decision was made by the responsibleAuthor. Normally, the same time as recording time when it's the same person.",
        "definition": "The time the clinical decision was made by the responsibleAuthor. Normally, the same time as recording time when it's the same person.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "MedicationTreatmentLineLM.recordingMetadata.authoringTime",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.derivedFrom",
        "path": "MedicationTreatmentLineLM.derivedFrom",
        "short": "Any data object that this treatment line is derived from",
        "definition": "Any data object that this treatment line is derived from",
        "min": 0,
        "max": "*",
        "base": {
          "path": "MedicationTreatmentLineLM.derivedFrom",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.derivedFrom.id",
        "path": "MedicationTreatmentLineLM.derivedFrom.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "Unique id for inter-element referencing",
        "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "id"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.derivedFrom.extension",
        "path": "MedicationTreatmentLineLM.derivedFrom.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "Additional content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.derivedFrom.modifierExtension",
        "path": "MedicationTreatmentLineLM.derivedFrom.modifierExtension",
        "short": "Extensions that cannot be ignored even if unrecognized",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
        "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "base": {
          "path": "BackboneElement.modifierExtension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": true,
        "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
        "isSummary": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.derivedFrom.request",
        "path": "MedicationTreatmentLineLM.derivedFrom.request",
        "short": "Prescriptions that have been the source for creating the unverified treatment line",
        "definition": "Prescriptions that have been the source for creating the unverified treatment line",
        "min": 0,
        "max": "*",
        "base": {
          "path": "MedicationTreatmentLineLM.derivedFrom.request",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.derivedFrom.statement",
        "path": "MedicationTreatmentLineLM.derivedFrom.statement",
        "short": "Medication-related statements from patients, pharmacists, or other HCPs, that are the source for creating the unverified treatment line",
        "definition": "Medication-related statements from patients, pharmacists, or other HCPs, that are the source for creating the unverified treatment line",
        "min": 0,
        "max": "*",
        "base": {
          "path": "MedicationTreatmentLineLM.derivedFrom.statement",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.derivedFrom.dispensation",
        "path": "MedicationTreatmentLineLM.derivedFrom.dispensation",
        "short": "Related dispensations that are not necessarily related to existing prescriptions/requests/statements.",
        "definition": "Related dispensations that are not necessarily related to existing prescriptions/requests/statements.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "MedicationTreatmentLineLM.derivedFrom.dispensation",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.derivedFrom.administration",
        "path": "MedicationTreatmentLineLM.derivedFrom.administration",
        "short": "Related administrations that are not necessarily related to existing prescriptions/requests/statements.",
        "definition": "Related administrations that are not necessarily related to existing prescriptions/requests/statements.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "MedicationTreatmentLineLM.derivedFrom.administration",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.derivedFrom.other",
        "path": "MedicationTreatmentLineLM.derivedFrom.other",
        "short": "Other related sources of information - CarePlan, Immunizations, Documents (e.g. Discharge letters)...",
        "definition": "Other related sources of information - CarePlan, Immunizations, Documents (e.g. Discharge letters)...",
        "min": 0,
        "max": "*",
        "base": {
          "path": "MedicationTreatmentLineLM.derivedFrom.other",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Reference"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "MedicationTreatmentLineLM",
        "path": "MedicationTreatmentLineLM",
        "short": "Medication Treatment Line (model)",
        "definition": "Logical model for representing one line/medication in medication overview."
      },
      {
        "id": "MedicationTreatmentLineLM.identifier",
        "path": "MedicationTreatmentLineLM.identifier",
        "short": "Unique business identifier(s) for the medication treatment line",
        "definition": "Unique business identifier(s) for the medication treatment line",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.medication[x]",
        "path": "MedicationTreatmentLineLM.medication[x]",
        "short": "Medicinal product for which the treatment line refers to. Identification or sufficient description of the product.",
        "definition": "Medicinal product for which the treatment line refers to. Identification or sufficient description of the product.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "targetProfile": [
              "http://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicinalProductLM"
            ]
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.status",
        "path": "MedicationTreatmentLineLM.status",
        "short": "Status of the treatment line entry",
        "definition": "Status of the record, not the status of the treatment.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.version",
        "path": "MedicationTreatmentLineLM.version",
        "short": "Business version of the treatment line",
        "definition": "Business version of the treatment line",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.timestamp",
        "path": "MedicationTreatmentLineLM.timestamp",
        "short": "Timestamp of the version of the treatment line",
        "definition": "Timestamp of the version of the treatment line",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.treatmentStatus",
        "path": "MedicationTreatmentLineLM.treatmentStatus",
        "short": "The state of the actual treatment - taking, not taken...",
        "definition": "The state of the actual treatment - taking, not taken...",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.treatmentStatusReasonCode",
        "path": "MedicationTreatmentLineLM.treatmentStatusReasonCode",
        "short": "The reason - coded - for the treatment status - i.e. adverse events, refusal...",
        "definition": "The reason - coded - for the treatment status - i.e. adverse events, refusal...",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.treatmentStatusReasonText",
        "path": "MedicationTreatmentLineLM.treatmentStatusReasonText",
        "short": "The reason - free text - for the treatment status - i.e. adverse events, refusal...",
        "definition": "The reason - free text - for the treatment status - i.e. adverse events, refusal...",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.effectivePeriod",
        "path": "MedicationTreatmentLineLM.effectivePeriod",
        "short": "The period of time the treatment is in effect",
        "definition": "The period of time the treatment is in effect",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.verificationInformation",
        "path": "MedicationTreatmentLineLM.verificationInformation",
        "short": "Verification of medication line",
        "definition": "Verification of medication line. The overview is verified as a whole, but each line is equipped with the information. The actual functional meaning and impact of this validation depends on the implementation.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.verificationInformation.verifier",
        "path": "MedicationTreatmentLineLM.verificationInformation.verifier",
        "short": "HCP (or device, if authorized) verifying the treatments/overview",
        "definition": "HCP (or device, if authorized) verifying the treatments/overview",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.verificationInformation.verificationTime",
        "path": "MedicationTreatmentLineLM.verificationInformation.verificationTime",
        "short": "The date and time when this medication treatment line was verified",
        "definition": "The date and time when this medication treatment line was verified",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.category",
        "path": "MedicationTreatmentLineLM.category",
        "short": "Whatever category for the treatment line. Categorisation of treatment lines is implementation-specific.",
        "definition": "Whatever category for the treatment line. Categorisation of treatment lines is implementation-specific.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.medicationTreatment",
        "path": "MedicationTreatmentLineLM.medicationTreatment",
        "short": "Reference or identifier of the group of lines that belong together",
        "definition": "Reference or identifier of the group of lines that belong together",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicationTreatmentLM"
            ]
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.indication",
        "path": "MedicationTreatmentLineLM.indication",
        "short": "Reason why the product has been prescribed to the patient, or why the patient claims to be taking it",
        "definition": "Reason why the product has been prescribed to the patient, or why the patient claims to be taking it",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.indicationText",
        "path": "MedicationTreatmentLineLM.indicationText",
        "short": "Textual explanation for why the medication has been prescribed or why the patient is taking it. This might not be allowed by some implementations.",
        "definition": "Textual explanation for why the medication has been prescribed or why the patient is taking it. This might not be allowed by some implementations.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.intendedUse",
        "path": "MedicationTreatmentLineLM.intendedUse",
        "short": "Intended Use of the medication - prophylaxis, therapy...",
        "definition": "Intended Use of the medication - prophylaxis, therapy...",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.usageInstructions",
        "path": "MedicationTreatmentLineLM.usageInstructions",
        "short": "Instructions about administration of the product",
        "definition": "Instructions about requested or actual administration of the product. This is repeatable to support complex or concurrent dosage instructions. e.g. take 1 per day for 3 weeks; 2x PRN",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "http://profiles.ihe.net/PHARM/MEOW/StructureDefinition/DosagingInformation"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.preparationInstructions",
        "path": "MedicationTreatmentLineLM.preparationInstructions",
        "short": "Additional instructions about preparation or dispense",
        "definition": "Additional instructions about preparation or dispense",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.comment",
        "path": "MedicationTreatmentLineLM.comment",
        "short": "Comment on the individual line",
        "definition": "Comment on the individual line",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.comment.author",
        "path": "MedicationTreatmentLineLM.comment.author",
        "short": "Author of the comment (Pharmacist, doctor, social carer, patient, device, related person)",
        "definition": "Author of the comment (Pharmacist, doctor, social carer, patient, device, related person)",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.comment.date",
        "path": "MedicationTreatmentLineLM.comment.date",
        "short": "time of comment",
        "definition": "time of comment",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.comment.commentText",
        "path": "MedicationTreatmentLineLM.comment.commentText",
        "short": "content of the comment",
        "definition": "content of the comment",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.substitution",
        "path": "MedicationTreatmentLineLM.substitution",
        "short": "Whether and which type of substitution is allowed for this medication treatment line",
        "definition": "Whether and which type of substitution is allowed for this medication treatment line",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.substitution.substitutionType",
        "path": "MedicationTreatmentLineLM.substitution.substitutionType",
        "short": "The type of substitution that is allowed.",
        "definition": "The type of substitution that is allowed.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.substitution.substitutionTypeReason",
        "path": "MedicationTreatmentLineLM.substitution.substitutionTypeReason",
        "short": "Coded reason for the substitution requirement",
        "definition": "Coded reason for the substitution requirement",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.substitution.substitutionTypeReasonText",
        "path": "MedicationTreatmentLineLM.substitution.substitutionTypeReasonText",
        "short": "Textual reason for the substitution requirement",
        "definition": "Textual reason for the substitution requirement",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.recordingMetadata",
        "path": "MedicationTreatmentLineLM.recordingMetadata",
        "short": "Metadata about reporting/authoring of the treatment line",
        "definition": "Metadata about reporting/authoring of the treatment line",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.recordingMetadata.recorder",
        "path": "MedicationTreatmentLineLM.recordingMetadata.recorder",
        "short": "Person entering the statement by initiating a treatment or documenting a statement by a patient or another professional. The recorder may be different from the author.",
        "definition": "Person entering the statement by initiating a treatment or documenting a statement by a patient or another professional. The recorder may be different from the author.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.recordingMetadata.recordedTime",
        "path": "MedicationTreatmentLineLM.recordingMetadata.recordedTime",
        "short": "Time of creation of the treatment line",
        "definition": "Time of creation of the treatment line",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.recordingMetadata.patientReported",
        "path": "MedicationTreatmentLineLM.recordingMetadata.patientReported",
        "short": "The treatment line has been documented according to patient's statement",
        "definition": "The treatment line has been documented according to patient's statement",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.recordingMetadata.responsibleAuthor",
        "path": "MedicationTreatmentLineLM.recordingMetadata.responsibleAuthor",
        "short": "HCP who takes the clinical decision for the medication treatment line. If an author is not present, the responsibility of the medication line is with the recorder.",
        "definition": "HCP who takes the clinical decision for the medication treatment line. If an author is not present, the responsibility of the medication line is with the recorder.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://profiles.ihe.net/PHARM/MEOW/StructureDefinition/PractitionerLM"
            ]
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.recordingMetadata.authoringTime",
        "path": "MedicationTreatmentLineLM.recordingMetadata.authoringTime",
        "short": "The time the clinical decision was made by the responsibleAuthor. Normally, the same time as recording time when it's the same person.",
        "definition": "The time the clinical decision was made by the responsibleAuthor. Normally, the same time as recording time when it's the same person.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.derivedFrom",
        "path": "MedicationTreatmentLineLM.derivedFrom",
        "short": "Any data object that this treatment line is derived from",
        "definition": "Any data object that this treatment line is derived from",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.derivedFrom.request",
        "path": "MedicationTreatmentLineLM.derivedFrom.request",
        "short": "Prescriptions that have been the source for creating the unverified treatment line",
        "definition": "Prescriptions that have been the source for creating the unverified treatment line",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.derivedFrom.statement",
        "path": "MedicationTreatmentLineLM.derivedFrom.statement",
        "short": "Medication-related statements from patients, pharmacists, or other HCPs, that are the source for creating the unverified treatment line",
        "definition": "Medication-related statements from patients, pharmacists, or other HCPs, that are the source for creating the unverified treatment line",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.derivedFrom.dispensation",
        "path": "MedicationTreatmentLineLM.derivedFrom.dispensation",
        "short": "Related dispensations that are not necessarily related to existing prescriptions/requests/statements.",
        "definition": "Related dispensations that are not necessarily related to existing prescriptions/requests/statements.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.derivedFrom.administration",
        "path": "MedicationTreatmentLineLM.derivedFrom.administration",
        "short": "Related administrations that are not necessarily related to existing prescriptions/requests/statements.",
        "definition": "Related administrations that are not necessarily related to existing prescriptions/requests/statements.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference"
          }
        ]
      },
      {
        "id": "MedicationTreatmentLineLM.derivedFrom.other",
        "path": "MedicationTreatmentLineLM.derivedFrom.other",
        "short": "Other related sources of information - CarePlan, Immunizations, Documents (e.g. Discharge letters)...",
        "definition": "Other related sources of information - CarePlan, Immunizations, Documents (e.g. Discharge letters)...",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference"
          }
        ]
      }
    ]
  }
}