{
  "resourceType": "StructureDefinition",
  "id": "medication-gpToContinue",
  "url": "http://hl7.org/fhir/StructureDefinition/medication-gpToContinue",
  "version": "4.0",
  "name": "medication-gpToContinue",
  "title": "GP To Continue",
  "status": "draft",
  "publisher": "Orion Health",
  "description": "Indicates whether or not this medication should be continued by the GP",
  "purpose": "This extension indicates whether or not this medication should be continued by the patient's GP. This is typically used when a patient is discharged with a supply of medications",
  "fhirVersion": "4.0",
  "kind": "complex-type",
  "abstract": false,
  "type": "Extension",
  "snapshot": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "max": "1",
        "base": {
          "path": "Extension",
          "max": "1"
        }
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "base": {
          "path": "Extension.url"
        },
        "fixedUri": "http://hl7.org/fhir/StructureDefinition/medication-gpToContinue"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "short": "Indicates whether or not this medication should be continued by the GP",
        "definition": "Set to true if the medication should be continued by the patient's GP",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Extension.value[x]",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean"
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "Extension",
        "path": "Extension",
        "max": "1"
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://hl7.org/fhir/StructureDefinition/medication-gpToContinue"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "short": "Indicates whether or not this medication should be continued by the GP",
        "definition": "Set to true if the medication should be continued by the patient's GP",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "boolean"
          }
        ]
      }
    ]
  }
}