Release 4 FHIR CI-Build

This page is part of the Continuous Integration Build of FHIR Specification (v4.0.1: R4 - Mixed Normative and STU ) in it's permanent home (it will always (will be available incorrect/inconsistent at this URL). The current version which supercedes this version is 5.0.0 . For a full list of available versions, see times).
See the Directory of published versions . Page versions: R5 R4B R4 R3 R2

Basic-example2.json

Example Basic/classModel (JSON)

Maturity Level : N/A
Responsible Owner: FHIR Infrastructure Work Group Standards Status : Informative Compartments : Patient , Practitioner , RelatedPerson

Raw JSON ( canonical form + also see JSON Format Specification )

How 'Basic' can be used for essoteric resources - in this case, a UML class model

{
  "resourceType": "Basic",
  "id": "classModel",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <p><b>Class1</b></p>\n      <ul>\n        <li>Attribute1: 1..*</li>\n        <li>Attribute2: 0..1</li>\n      </ul>\n    </div>"

  "resourceType" : "Basic",
  "id" : "classModel",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <p><b>Class1</b></p>\n      <ul>\n        <li>Attribute1: 1..*</li>\n        <li>Attribute2: 0..1</li>\n      </ul>\n    </div>"

  },
  "extension": [

  "extension" : [{
    "url" : "http://example.org/do-not-use/fhir-extensions/UMLclass",
    "extension" : [{
      "url" : "name",
      "valueString" : "Class1"
    },

    {
      "url": "http://example.org/do-not-use/fhir-extensions/UMLclass",
      "extension": [
        {
          "url": "name",
          "valueString": "Class1"
        },
        {
          "url": "attribute",
          "extension": [
            {
              "url": "name",
              "valueString": "attribute1"
            },
            {
              "url": "minOccurs",
              "valueInteger": 1
            },
            {
              "url": "maxOccurs",
              "valueCode": "*"
            }
          ]
        },
        {
          "url": "attribute",
          "extension": [
            {
              "url": "name",
              "valueString": "attribute2"
            },
            {
              "url": "minOccurs",
              "valueInteger": 0
            },
            {
              "url": "maxOccurs",
              "valueInteger": 1
            }
          ]
        }
      ]
    }
  ],
  "code": {
    "coding": [

      "url" : "attribute",
      "extension" : [{
        "url" : "name",
        "valueString" : "attribute1"
      },

      {
        "system": "http://example.org/do-not-use/fhir-codes#resourceTypes",
        "code": "UMLCLASSMODEL"
      }
    ]

        "url" : "minOccurs",
        "valueInteger" : 1
      },
      {
        "url" : "maxOccurs",
        "valueCode" : "*"
      }]
    },
    {
      "url" : "attribute",
      "extension" : [{
        "url" : "name",
        "valueString" : "attribute2"
      },
      {
        "url" : "minOccurs",
        "valueInteger" : 0
      },
      {
        "url" : "maxOccurs",
        "valueInteger" : 1
      }]
    }]
  }],
  "code" : {
    "coding" : [{
      "system" : "http://example.org/do-not-use/fhir-codes#resourceTypes",
      "code" : "UMLCLASSMODEL"
    }]

  }
}

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.