{
  "resourceType": "StructureDefinition",
  "url": "http://moh.gov.vn/fhir/core/StructureDefinition/vn-core-medication-statement",
  "version": "1.0",
  "name": "MedicationStatement",
  "title": "MedicationStatement Profile - VN Core R4",
  "status": "draft",
  "date": "2020-12-31",
  "description": "Thông tin đánh giá liên quan đến quá trình sử dụng thuốc của người bệnh. Tham khảo thêm: https://www.hl7.org/fhir/medications-module.html",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "MedicationStatement",
  "baseDefinition": "http://hl7.org/fhir/uv/ips/StructureDefinition/MedicationStatement-uv-ips",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationStatement.identifier",
        "path": "MedicationStatement.identifier",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.basedOn",
        "path": "MedicationStatement.basedOn",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
              "http://hl7.org/fhir/StructureDefinition/CarePlan",
              "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
              "http://moh.gov.vn/fhir/core/StructureDefinition/vn-core-medication-request"
            ]
          }
        ]
      },
      {
        "id": "MedicationStatement.category",
        "path": "MedicationStatement.category",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://moh.gov.vn/fhir/core/StructureDefinition/vn-core-codeableconcept"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.medication[x]:medicationReference",
        "path": "MedicationStatement.medicationReference",
        "sliceName": "medicationReference",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://moh.gov.vn/fhir/core/StructureDefinition/vn-core-medication"
            ]
          }
        ]
      },
      {
        "id": "MedicationStatement.medication[x]:medicationCodeableConcept",
        "path": "MedicationStatement.medicationCodeableConcept",
        "sliceName": "medicationCodeableConcept",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://moh.gov.vn/fhir/core/StructureDefinition/vn-core-codeableconcept"
            ]
          }
        ],
        "binding": {
          "strength": "extensible",
          "valueSet": "http://moh.gov.vn/fhir/core/ValueSet/vn-medication-code"
        }
      },
      {
        "id": "MedicationStatement.subject",
        "path": "MedicationStatement.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://moh.gov.vn/fhir/core/StructureDefinition/vn-core-patient"
            ]
          }
        ]
      },
      {
        "id": "MedicationStatement.context",
        "path": "MedicationStatement.context",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://moh.gov.vn/fhir/core/StructureDefinition/vn-core-encounter"
            ]
          }
        ]
      },
      {
        "id": "MedicationStatement.derivedFrom",
        "path": "MedicationStatement.derivedFrom",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.reasonCode",
        "path": "MedicationStatement.reasonCode",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://moh.gov.vn/fhir/core/StructureDefinition/vn-core-codeableconcept"
            ]
          }
        ]
      },
      {
        "id": "MedicationStatement.note",
        "path": "MedicationStatement.note",
        "mustSupport": true
      },
      {
        "id": "MedicationStatement.dosage",
        "path": "MedicationStatement.dosage",
        "type": [
          {
            "code": "Dosage",
            "profile": [
              "http://moh.gov.vn/fhir/core/StructureDefinition/vn-core-dosage"
            ]
          }
        ]
      }
    ]
  }
}