{
  "resourceType": "StructureDefinition",
  "id": "MedicationStatement",
  "url": "http://mrdm.nl/profiles/fhir/r4/dbir/StructureDefinition/MedicationStatement",
  "name": "MedicationStatement",
  "status": "draft",
  "description": "Use of antibiotics I.V. before or after surgery",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "MedicationStatement",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "MedicationStatement.category",
        "path": "MedicationStatement.category",
        "min": 1
      },
      {
        "id": "MedicationStatement.category.coding",
        "path": "MedicationStatement.category.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "MedicationStatement.category.coding.system",
        "path": "MedicationStatement.category.coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "MedicationStatement.category.coding.code",
        "path": "MedicationStatement.category.coding.code",
        "code": [
          {
            "system": "http://snomed.info/sct",
            "code": "18286008",
            "display": "Administration of medication before a surgical procedure"
          },
          {
            "system": "http://snomed.info/sct",
            "code": "430193006",
            "display": "Administration of medication after a surgical procedure"
          }
        ]
      },
      {
        "id": "MedicationStatement.medication[x]",
        "path": "MedicationStatement.medication[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "MedicationStatement.medication[x].coding.system",
        "path": "MedicationStatement.medication[x].coding.system",
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "MedicationStatement.medication[x].coding.code",
        "path": "MedicationStatement.medication[x].coding.code",
        "fixedCode": "68322007"
      },
      {
        "id": "MedicationStatement.context",
        "path": "MedicationStatement.context",
        "min": 1
      }
    ]
  }
}