FHIR Release 3 (STU) R5 Final QA

This page is part of the FHIR Specification (v3.0.2: STU (v5.0.0-draft-final: Final QA Preview for R5 - see ballot notes 3). ). The current version which supercedes this version is 5.0.0 . For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2

Content Detailed Descriptions Mappings XML JSON

Example List/med-list (JSON)

Extension: occurredFollowing URL for this extension: http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing
Patient Care FHIR Infrastructure Work Group   Maturity Level : 1 N/A Standards Status : Informative Use Context Compartments : Any Device , Patient , Practitioner

Full Structure Name Flags Card. Type Description & Constraints extension 0..* Extension URL = http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing occurredFollowing: Further conditions, problems, diagnoses, procedures or events or the substance that preceded this Condition. Use on element: Condition url 1..1 uri "http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing" value[x] 1..1 CodeableConcept , Reference ( Condition ), Reference ( Procedure ), Reference ( MedicationAdministration ), Reference ( Immunization ), Reference Raw JSON ( MedicationStatement ) Value of extension Binding: Condition Predecessor Codes canonical form ( example + also see JSON Format Specification ) Documentation for this format XML Template

<!-- occurredFollowing --> < xmlns="http://hl7.org/fhir" url="" > <!-- from Element: <)| </value[x]> </extension>

JSON Template Example Medication Change List

{ // // from Element: " ], " " " " " " " }
{
  "resourceType" : "List",
  "id" : "med-list",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <p>Add hydroxocobalamin</p>\n      <p>Cancel Morphine Sulphate</p>\n    </div>"
  },
  "status" : "current",
  "mode" : "changes",
  "code" : {
    "coding" : [{
      "system" : "http://snomed.info/sct",
      "code" : "182836005",
      "display" : "Review of medication"
    }],
    "text" : "Medication Review"
  },
  "date" : "2013-11-20T23:10:23+11:00",
  "source" : {
    "reference" : "Patient/example"
  },
  "entry" : [{
    "flag" : {
      "coding" : [{
        "system" : "http://nehta.gov.au/codes/medications/changetype",
        "code" : "01",
        "display" : "Prescribed"
      }]
    },
    "item" : {
      "display" : "hydroxocobalamin"
    }
  },
  {
    "flag" : {
      "coding" : [{
        "system" : "http://nehta.gov.au/codes/medications/changetype",
        "code" : "02",
        "display" : "Cancelled"
      }]
    },
    "deleted" : true,
    "item" : {
      "display" : "Morphine Sulfate"
    }
  }]
}

Summary Name Flags Card. Type Description & Constraints extension 0..* CodeableConcept , Reference ( Condition ), Reference ( Procedure ), Reference ( MedicationAdministration ), Reference ( Immunization ), Reference ( MedicationStatement ) URL = http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing occurredFollowing: Further conditions, problems, diagnoses, procedures or events or the substance Usage note: every effort has been made to ensure that preceded this Condition. Binding: Condition Predecessor Codes ( example ) Use on element: Condition Documentation for this format Full Structure Name Flags Card. Type Description & Constraints extension 0..* Extension URL = http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing occurredFollowing: Further conditions, problems, diagnoses, procedures or events or the substance that preceded this Condition. Use on element: Condition url 1..1 uri "http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing" value[x] 1..1 CodeableConcept , Reference ( Condition ), Reference ( Procedure ), Reference ( MedicationAdministration ), Reference ( Immunization ), Reference ( MedicationStatement ) Value examples are correct and useful, but they are not a normative part of extension Binding: Condition Predecessor Codes ( example ) Documentation for this format XML Template <!-- occurredFollowing --> < xmlns="http://hl7.org/fhir" url="" > <!-- from Element: <)| </value[x]> </extension> JSON Template the specification.

{ // // from Element: " ], " " " " " " " }
  Constraints ele-1 : All FHIR elements must have a @value or children (xpath: @value|f:*|h:div ) ext-1 : Must have either extensions or value[x], not both (xpath: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')]) )