{
  "resourceType": "StructureDefinition",
  "id": "shr-medication-MedicationChange",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n  <p><b>SHR MedicationChange Profile</b></p>\n  <p>Description of a modification or change of a medication or dosage.</p>\n  <p><b>SHR Mapping Summary</b></p>\n  <p><pre>shr.medication.MedicationChange maps to Basic:\n</pre></p>\n</div>"
  },
  "url": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-MedicationChange",
  "identifier": [
    {
      "system": "http://standardhealthrecord.org",
      "value": "shr.medication.MedicationChange"
    }
  ],
  "version": "0.0.1",
  "name": "SHR MedicationChange Profile",
  "status": "draft",
  "date": "2017-12-20",
  "publisher": "The MITRE Corporation: Standard Health Record Collaborative",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://standardhealthrecord.org"
        }
      ]
    }
  ],
  "description": "Description of a modification or change of a medication or dosage.",
  "purpose": "Need some way to safely (without breaking interoperability) allow implementers to exchange content not supported by the initial set of declared resources.",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/w5",
      "name": "W5 Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Basic",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Basic",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Basic:shr-medication-MedicationChange",
        "path": "Basic",
        "short": "SHR MedicationChange Profile",
        "definition": "Description of a modification or change of a medication or dosage."
      },
      {
        "id": "Basic:shr-medication-MedicationChange.extension:relatedencounter",
        "path": "Basic.extension",
        "sliceName": "relatedencounter",
        "definition": "If content was generated during a patient encounter, related encounter is the encounter where the information was gained.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-RelatedEncounter-extension"
          }
        ]
      },
      {
        "id": "Basic:shr-medication-MedicationChange.extension:author",
        "path": "Basic.extension",
        "sliceName": "author",
        "definition": "The person or organization who created the entry and is responsible for (and may certify) the content.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Author-extension"
          }
        ]
      },
      {
        "id": "Basic:shr-medication-MedicationChange.extension:informant",
        "path": "Basic.extension",
        "sliceName": "informant",
        "definition": "The person or entity that provided the information in the entry, as distinct from who created the entry, e.g. the subject (patient), medical professional, family member, device or software program.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-base-Informant-extension"
          }
        ]
      },
      {
        "id": "Basic:shr-medication-MedicationChange.extension:type",
        "path": "Basic.extension",
        "sliceName": "type",
        "definition": "The most specific code (lowest level term) describing the kind or sort of thing being represented.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-entity-Type-extension"
          }
        ]
      },
      {
        "id": "Basic:shr-medication-MedicationChange.extension:type.valueCodeableConcept",
        "path": "Basic.extension.valueCodeableConcept",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://standardhealthrecord.org/shr/medication/vs/MedicationChangeTypeVS"
          }
        }
      },
      {
        "id": "Basic:shr-medication-MedicationChange.extension:category",
        "path": "Basic.extension",
        "sliceName": "category",
        "definition": "A class or division of people or things having particular shared characteristics",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-core-Category-extension"
          }
        ]
      },
      {
        "id": "Basic:shr-medication-MedicationChange.extension:performedcontext",
        "path": "Basic.extension",
        "sliceName": "performedcontext",
        "definition": "ActionContext indicating actual performance or execution of a healthcare-related action, e.g., 3rd dose of Hepatitis B vaccine administered on Dec 4th 2012, appendectomy performed today.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-action-PerformedContext-extension"
          }
        ]
      },
      {
        "id": "Basic:shr-medication-MedicationChange.extension:performedcontext.extension:reason",
        "path": "Basic.extension.extension"
      },
      {
        "id": "Basic:shr-medication-MedicationChange.extension:performedcontext.extension:reason.extension:codeableconcept",
        "path": "Basic.extension.extension.extension"
      },
      {
        "id": "Basic:shr-medication-MedicationChange.extension:performedcontext.extension:reason.extension:codeableconcept.valueCodeableConcept",
        "path": "Basic.extension.extension.extension.valueCodeableConcept",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://standardhealthrecord.org/shr/medication/vs/MedicationChangeReasonVS"
          }
        }
      },
      {
        "id": "Basic:shr-medication-MedicationChange.extension:medicationbeforechange",
        "path": "Basic.extension",
        "sliceName": "medicationbeforechange",
        "definition": "The medication taken, prior to the change.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-MedicationBeforeChange-extension"
          }
        ]
      },
      {
        "id": "Basic:shr-medication-MedicationChange.extension:medicationafterchange",
        "path": "Basic.extension",
        "sliceName": "medicationafterchange",
        "definition": "The medication taken, prior to the change.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension",
            "profile": "http://standardhealthrecord.org/fhir/StructureDefinition/shr-medication-MedicationAfterChange-extension"
          }
        ]
      },
      {
        "id": "Basic:shr-medication-MedicationChange.code",
        "path": "Basic.code",
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "http://standardhealthrecord.org/fhir/basic-resource-type",
              "code": "shr-medication-MedicationChange"
            }
          ]
        }
      }
    ]
  }
}