Release 4 R5 Final QA

This page is part of the FHIR Specification (v4.0.1: R4 (v5.0.0-draft-final: Final QA Preview for R5 - Mixed Normative and STU see ballot notes ) in it's permanent home (it will always be available at this URL). ). 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 Content Detailed Descriptions Mappings XML R3 JSON R2

Example Claim/860150 (JSON)

Extension: ancestor URL for this extension: http://hl7.org/fhir/StructureDefinition/structuredefinition-ancestor Status: draft. Extension maintained by: Health Level Seven, Inc. - [WG Name] WG A canonical reference to a StructureDefinition that this is derived from. This is a de-normalization of a chain of StructureDefinition.baseDefinition. Comment : It is an error if a structure definition lists an ancestor that is not in the chain of baseDefinitions. Context of Use: Use on Element ID StructureDefinition Extension Content
FHIR Infrastructure Financial Management Work Group   Maturity Level : 1 N/A Standards Status : Informative Use Context Compartments : Any Device , Encounter , Patient , Practitioner , RelatedPerson

Full Structure Name Flags Card. Type Description & Constraints extension Raw JSON 0..* Extension URL = http://hl7.org/fhir/StructureDefinition/structuredefinition-ancestor ancestor: A ( canonical reference to a StructureDefinition that this is derived from. This is a de-normalization of a chain of StructureDefinition.baseDefinition. Use on Element ID StructureDefinition extension I 0..0 url 1..1 uri "http://hl7.org/fhir/StructureDefinition/structuredefinition-ancestor" value[x] I 1..1 uri form Value of extension Documentation for this format + also see JSON Format Specification XML Template )

<!-- ancestor --> < xmlns="http://hl7.org/fhir" url="" > <!-- from Element: < </extension>

JSON Template Simple Professional Service Claim

{ // // from Element: " ] " " }
{
  "resourceType" : "Claim",
  "id" : "860150",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">A human-readable rendering of the Claim</div>"
  },
  "identifier" : [{
    "system" : "http://happypdocs.com/claim",
    "value" : "8612345"
  }],
  "status" : "active",
  "type" : {
    "coding" : [{
      "system" : "http://terminology.hl7.org/CodeSystem/claim-type",
      "code" : "professional"
    }]
  },
  "use" : "claim",
  "patient" : {
    "reference" : "Patient/1"
  },
  "created" : "2014-08-16",
  "insurer" : {
    "reference" : "Organization/2"
  },
  "provider" : {
    "reference" : "Organization/1"
  },
  "priority" : {
    "coding" : [{
      "code" : "normal"
    }]
  },
  "payee" : {
    "type" : {
      "coding" : [{
        "code" : "provider"
      }]
    }
  },
  "careTeam" : [{
    "sequence" : 1,
    "provider" : {
      "reference" : "Practitioner/example"
    }
  }],
  "diagnosis" : [{
    "sequence" : 1,
    "diagnosisCodeableConcept" : {
      "coding" : [{
        "code" : "654456"
      }]
    }
  }],
  "insurance" : [{
    "sequence" : 1,
    "focal" : true,
    "coverage" : {
      "reference" : "Coverage/9876B1"
    }
  }],
  "item" : [{
    "sequence" : 1,
    "careTeamSequence" : [1],
    "productOrService" : {
      "coding" : [{
        "system" : "http://hl7.org/fhir/ex-serviceproduct",
        "code" : "exam"
      }]
    },
    "servicedDate" : "2014-08-16",
    "unitPrice" : {
      "value" : 75.00,
      "currency" : "USD"
    },
    "net" : {
      "value" : 75.00,
      "currency" : "USD"
    }
  }]
}

Summary Name Flags Card. Type Description & Constraints ancestor 0..* uri URL = http://hl7.org/fhir/StructureDefinition/structuredefinition-ancestor ancestor: A canonical reference to a StructureDefinition that this is derived from. This is a de-normalization of a chain of StructureDefinition.baseDefinition. Use on Element ID StructureDefinition Documentation for this format Full Structure Name Flags Card. Type Description & Constraints extension 0..* Extension URL = http://hl7.org/fhir/StructureDefinition/structuredefinition-ancestor ancestor: A canonical reference Usage note: every effort has been made to a StructureDefinition ensure that this is derived from. This is a de-normalization of the examples are correct and useful, but they are not a chain of StructureDefinition.baseDefinition. Use on Element ID StructureDefinition extension I 0..0 url 1..1 uri "http://hl7.org/fhir/StructureDefinition/structuredefinition-ancestor" value[x] I 1..1 uri Value normative part of extension Documentation for this format XML Template the specification.

<!-- ancestor --> < xmlns="http://hl7.org/fhir" url="" > <!-- from Element: < </extension>
JSON Template { // // 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')]) ) ele-1 : On Extension.extension: All FHIR elements must have a @value or children (xpath on Extension.extension: @value|f:*|h:div ) ext-1 : On Extension.extension: Must have either extensions or value[x], not both (xpath on Extension.extension: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")]) ) ele-1 : On Extension.value[x]: All FHIR elements must have a @value or children (xpath on Extension.value[x]: @value|f:*|h:div )