STU 3 Candidate

This page is part of the FHIR Specification (v1.4.0: STU 3 Ballot 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

Basic-example2.ttl

Raw Turtle, JSON-LD

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

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xs: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir//Basic/classModel> a fhir:Basic;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "classModel"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ]
  ];
  fhir:DomainResource.extension [
     fhir:index 0;
     fhir:Element.extension [
       fhir:index 0;
       fhir:Extension.url [ fhir:value "name" ];
       fhir:Extension.valueString [ fhir:value "Class1" ]     ];
     fhir:Element.extension [
       fhir:index 1;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Extension.url [ fhir:value "name" ];
         fhir:Extension.valueString [ fhir:value "attribute1" ]       ];
       fhir:Element.extension [
         fhir:index 1;
         fhir:Extension.url [ fhir:value "minOccurs" ];
         fhir:Extension.valueInteger [ fhir:value "1"^^xs:int ]       ];
       fhir:Element.extension [
         fhir:index 2;
         fhir:Extension.url [ fhir:value "maxOccurs" ];
         fhir:Extension.valueCode [ fhir:value "*" ]       ];
       fhir:Extension.url [ fhir:value "attribute" ]     ];
     fhir:Element.extension [
       fhir:index 2;
       fhir:Element.extension [
         fhir:index 0;
         fhir:Extension.url [ fhir:value "name" ];
         fhir:Extension.valueString [ fhir:value "attribute2" ]       ];
       fhir:Element.extension [
         fhir:index 1;
         fhir:Extension.url [ fhir:value "minOccurs" ];
         fhir:Extension.valueInteger [ fhir:value "0"^^xs:int ]       ];
       fhir:Element.extension [
         fhir:index 2;
         fhir:Extension.url [ fhir:value "maxOccurs" ];
         fhir:Extension.valueInteger [ fhir:value "1"^^xs:int ]       ];
       fhir:Extension.url [ fhir:value "attribute" ]     ];
     fhir:Extension.url [ fhir:value "http://example.org/do-not-use/fhir-extensions/UMLclass" ]
  ];
  fhir:Basic.code [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       fhir:Coding.system [ fhir:value "http://example.org/do-not-use/fhir-codes#resourceTypes" ];
       fhir:Coding.code [ fhir:value "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.