{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2018-03-06T09:22:52.585+00:00"
  },
  "url": "http://trilliumbridge.eu/fhir/StructureDefinition/medicationstatement-uv-trillium2",
  "version": "0.04",
  "name": "MedicationStatement-uv-trillium2",
  "status": "draft",
  "date": "2017-11-27T08:39:33.993+00:00",
  "publisher": "Trillium II",
  "contact": [
    {
      "name": "François Macary - PHAST"
    }
  ],
  "description": "This profile represents the contraints applied to the MedicationStatement resource by the Trillium II project, which specifies an international patient summary based on the FHIR standard STU3. An instance of MedicationStatement represents one statement about the patient's current medications.",
  "purpose": "In the Trillium II international patient summary, the MedicationStatement resource is an item of the list of current medications prescribed to, or dispensed to, or taken by the patient. This resource captures a statement about one current medication of the patient.",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationStatement",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationStatement.identifier",
        "path": "MedicationStatement.identifier",
        "max": "0"
      },
      {
        "id": "MedicationStatement.basedOn",
        "path": "MedicationStatement.basedOn",
        "max": "0"
      },
      {
        "id": "MedicationStatement.partOf",
        "path": "MedicationStatement.partOf",
        "max": "0"
      },
      {
        "id": "MedicationStatement.context",
        "path": "MedicationStatement.context",
        "max": "0"
      },
      {
        "id": "MedicationStatement.status",
        "path": "MedicationStatement.status",
        "short": "active | intended | on-hold",
        "definition": "A code representing the patient or other source's judgment about the state of the medication used that this statement is about.  Trillium II uses only 3 values.",
        "requirements": "The value \"unknown\" is not part of STU3, has beend added in the current build and will be part of R4. The Trillium II project uses the \"taken\" element to record the value \"unknown\", and in this case, the \"status\" element is populated with \"intended\".",
        "defaultValueCode": "active",
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "MedicationStatementStatus"
            }
          ],
          "strength": "required",
          "valueSetReference": {
            "reference": "http://trilliumbridge.eu/fhir/ValueSet/medication-statement-status-uv-trillium2"
          }
        }
      },
      {
        "id": "MedicationStatement.category",
        "path": "MedicationStatement.category",
        "max": "0"
      },
      {
        "id": "MedicationStatement.medication[x]",
        "path": "MedicationStatement.medication[x]",
        "definition": "Identifies the medication being administered. This is either a reference to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.\r\nThe meanings \"no medication in use\" and \"medications use unknown\" are represented by codes in the medicationCodeableConcept attribute",
        "type": [
          {
            "code": "CodeableConcept"
          },
          {
            "code": "Reference",
            "targetProfile": "http://trilliumbridge.eu/fhir/StructureDefinition/medication-uv-trillium2"
          }
        ]
      },
      {
        "id": "MedicationStatement.dateAsserted",
        "path": "MedicationStatement.dateAsserted",
        "min": 1
      },
      {
        "id": "MedicationStatement.informationSource",
        "path": "MedicationStatement.informationSource",
        "min": 1
      },
      {
        "id": "MedicationStatement.subject",
        "path": "MedicationStatement.subject",
        "definition": "The patient who is/was/will be taking the medication.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient"
          }
        ]
      },
      {
        "id": "MedicationStatement.derivedFrom",
        "path": "MedicationStatement.derivedFrom",
        "max": "0"
      },
      {
        "id": "MedicationStatement.reasonNotTaken",
        "path": "MedicationStatement.reasonNotTaken",
        "max": "0"
      },
      {
        "id": "MedicationStatement.reasonCode",
        "path": "MedicationStatement.reasonCode",
        "max": "0"
      },
      {
        "id": "MedicationStatement.reasonReference",
        "path": "MedicationStatement.reasonReference",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.additionalInstruction",
        "path": "MedicationStatement.dosage.additionalInstruction",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.site.coding.userSelected",
        "path": "MedicationStatement.dosage.site.coding.userSelected",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.route.coding.userSelected",
        "path": "MedicationStatement.dosage.route.coding.userSelected",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.method",
        "path": "MedicationStatement.dosage.method",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.maxDosePerAdministration",
        "path": "MedicationStatement.dosage.maxDosePerAdministration",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.maxDosePerLifetime",
        "path": "MedicationStatement.dosage.maxDosePerLifetime",
        "max": "0"
      },
      {
        "id": "MedicationStatement.dosage.rate[x]",
        "path": "MedicationStatement.dosage.rate[x]",
        "max": "0"
      }
    ]
  }
}