R6 Ballot (3rd Draft) (1st Full Ballot)

Publish-box (todo) This page is part of the FHIR Specification v6.0.0-ballot4: Release 6 Ballot (1st Full Ballot) (see Ballot Notes ). The current version is 5.0.0 . For a full list of available versions, see the Directory of published versions for published versions

Example Basic/classModel (XML)

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

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

Jump past Narrative

How 'Basic' can be used for essoteric resources - in this case, a UML class model (id = "classModel")

<?xml version="1.0" encoding="UTF-8"?>

<!--   This is a silly exmple showing how Basic could be used to convey a UML diagram.
  It is extremely

  It is extremely

unlikely anyone would ever use FHIR to do this.  (XMI isn't *that* unpleasant :>).
  However, it shows

  However, it shows

how somewhat esoteric requirements that won't ever be supported by the core FHIR
 specification can still
be managed in a conformant manner.  -->
  
  
    
      
      
        
        
      
    
  
  
    
      
    
    
      
        
      
      
        
      
      
        
      
    
    
      
        
      
      
        
      
      
        
      
    
  
  
    
      
      
    
  

 specification can still
be managed in a conformant manner.  --><Basic xmlns="http://hl7.org/fhir">
  <id value="classModel"/> 
  <text> 
    <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml">
      <p> <b> Class1</b> </p> 
      <ul> 
        <li> Attribute1: 1..*</li> 
        <li> Attribute2: 0..1</li> 
      </ul> 
    </div> 
  </text> 
  <extension url="http://example.org/do-not-use/fhir-extensions/UMLclass">
    <extension url="name">
      <valueString value="Class1"/> 
    </extension> 
    <extension url="attribute">
      <extension url="name">
        <valueString value="attribute1"/> 
      </extension> 
      <extension url="minOccurs">
        <valueInteger value="1"/> 
      </extension> 
      <extension url="maxOccurs">
        <valueCode value="*"/> 
      </extension> 
    </extension> 
    <extension url="attribute">
      <extension url="name">
        <valueString value="attribute2"/> 
      </extension> 
      <extension url="minOccurs">
        <valueInteger value="0"/> 
      </extension> 
      <extension url="maxOccurs">
        <valueInteger value="1"/> 
      </extension> 
    </extension> 
  </extension> 
  <code> 
    <coding> 
      <system value="http://example.org/do-not-use/fhir-codes#resourceTypes"/> 
      <code value="UMLCLASSMODEL"/> 
    </coding> 
  </code> 


</

Basic

>



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.