Release 4 Snapshot 3: Connectathon 32 Base

This page is part of the Snapshot #3 for FHIR Specification (v4.0.1: R4 - Mixed Normative and STU ) in it's permanent home (it will always be available at this URL). The current version which supercedes this version is 5.0.0 R5 , released to support Connectathon 32 . For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

Episodeofcare-example.ttl

Example StructureDefinition/questionnaire-minOccurs (XML)

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

Raw Turtle XML (+ ( canonical form + also see Turtle/RDF XML Format Specification )

Episode of Care example QMinOccurs

@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 xsd: <http://www.w3.org/2001/XMLSchema#> . # - resource ------------------------------------------------------------------- <http://hl7.org/fhir/EpisodeOfCare/example> a fhir:EpisodeOfCare; fhir:nodeRole fhir:treeRoot; fhir:Resource.id [ fhir:value "example"]; fhir:DomainResource.text [ fhir:Narrative.status [ fhir:value "generated" ]; fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n HACC Program for Peter James Chalmers at HL7 Healthcare 15 Sept 2014 - current<br/>\n was on leave from 22 Sept - 24 Sept while in respite care\n </div>" ]; fhir:EpisodeOfCare.identifier [ fhir:index 0; fhir:Identifier.system [ fhir:value "http://example.org/sampleepisodeofcare-identifier" ]; fhir:Identifier.value [ fhir:value "123" ] ]; fhir:EpisodeOfCare.status [ fhir:value "active"]; fhir:EpisodeOfCare.statusHistory [ fhir:index 0; fhir:EpisodeOfCare.statusHistory.status [ fhir:value "planned" ]; fhir:EpisodeOfCare.statusHistory.period [ fhir:Period.start [ fhir:value "2014-09-01"^^xsd:date ]; fhir:Period.end [ fhir:value "2014-09-14"^^xsd:date ] ] ], [ fhir:index 1; fhir:EpisodeOfCare.statusHistory.status [ fhir:value "active" ]; fhir:EpisodeOfCare.statusHistory.period [ fhir:Period.start [ fhir:value "2014-09-15"^^xsd:date ]; fhir:Period.end [ fhir:value "2014-09-21"^^xsd:date ] ] ], [ fhir:index 2; fhir:EpisodeOfCare.statusHistory.status [ fhir:value "onhold" ]; fhir:EpisodeOfCare.statusHistory.period [ fhir:Period.start [ fhir:value "2014-09-22"^^xsd:date ]; fhir:Period.end [ fhir:value "2014-09-24"^^xsd:date ] ] ], [ fhir:index 3; fhir:EpisodeOfCare.statusHistory.status [ fhir:value "active" ]; fhir:EpisodeOfCare.statusHistory.period [ fhir:Period.start [ fhir:value "2014-09-25"^^xsd:date ] ] ]; fhir:EpisodeOfCare.type [ fhir:index 0; fhir:CodeableConcept.coding [ fhir:index 0; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/episodeofcare-type" ]; fhir:Coding.code [ fhir:value "hacc" ]; fhir:Coding.display [ fhir:value "Home and Community Care" ] ] ]; fhir:EpisodeOfCare.diagnosis [ fhir:index 0; fhir:EpisodeOfCare.diagnosis.condition [ fhir:link <http://hl7.org/fhir/Condition/stroke>; fhir:Reference.reference [ fhir:value "Condition/stroke" ] ]; fhir:EpisodeOfCare.diagnosis.role [ fhir:CodeableConcept.coding [ fhir:index 0; fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/diagnosis-role" ]; fhir:Coding.code [ fhir:value "CC" ]; fhir:Coding.display [ fhir:value "Chief complaint" ] ] ]; fhir:EpisodeOfCare.diagnosis.rank [ fhir:value "1"^^xsd:positiveInteger ] ]; fhir:EpisodeOfCare.patient [ fhir:link <http://hl7.org/fhir/Patient/example>; fhir:Reference.reference [ fhir:value "Patient/example" ] ]; fhir:EpisodeOfCare.managingOrganization [ fhir:link <http://hl7.org/fhir/Organization/hl7>; fhir:Reference.reference [ fhir:value "Organization/hl7" ] ]; fhir:EpisodeOfCare.period [ fhir:Period.start [ fhir:value "2014-09-01"^^xsd:date ] ]; fhir:EpisodeOfCare.referralRequest [ fhir:index 0; fhir:Reference.display [ fhir:value "Referral from Example Aged Care Services" ] ]; fhir:EpisodeOfCare.careManager [ fhir:link <http://hl7.org/fhir/Practitioner/14>; fhir:Reference.reference [ fhir:value "Practitioner/14" ]; fhir:Reference.display [ fhir:value "Amanda Assigned" ] ]; fhir:EpisodeOfCare.team [ fhir:index 0; fhir:link <http://hl7.org/fhir/CareTeam/example>; fhir:Reference.reference [ fhir:value "CareTeam/example" ]; fhir:Reference.display [ fhir:value "example care team" ] ]; fhir:EpisodeOfCare.account [ fhir:index 0; fhir:link <http://hl7.org/fhir/Account/example>; fhir:Reference.reference [ fhir:value "Account/example" ]; fhir:Reference.display [ fhir:value "example account" ] ] . <http://hl7.org/fhir/Condition/stroke> a fhir:Condition . <http://hl7.org/fhir/Patient/example> a fhir:Patient . <http://hl7.org/fhir/Organization/hl7> a fhir:Organization . <http://hl7.org/fhir/Practitioner/14> a fhir:Practitioner . <http://hl7.org/fhir/CareTeam/example> a fhir:CareTeam . <http://hl7.org/fhir/Account/example> a fhir:Account . # - ontology header ------------------------------------------------------------ <http://hl7.org/fhir/EpisodeOfCare/example.ttl> a owl:Ontology; owl:imports fhir:fhir.ttl; owl:versionIRI <http://build.fhir.org/EpisodeOfCare/example.ttl> . # -------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>


<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="questionnaire-minOccurs"/> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="fhir"/> 
  </extension> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="1"/> 
  </extension> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use"/> 
  </extension> 
  <url value="http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs"/> 
  <identifier> 
    <system value="urn:ietf:rfc:3986"/> 
    <value value="urn:oid:2.16.840.1.113883.4.642.5.1254"/> 
  </identifier> 
  <version value="5.0.0-snapshot3"/> 
  <name value="QMinOccurs"/> 
  <title value="Questionnaire Min Occurs"/> 
  <status value="draft"/> 
  <experimental value="false"/> 
  <date value="2013-07-04"/> 
  <publisher value="HL7"/> 
  <contact> 
    <telecom> 
      <system value="url"/> 
      <value value="http://www.hl7.org"/> 
    </telecom> 
  </contact> 
  <description value="The minimum number of times the group must appear, or the minimum number of answers
   for a question - when greater than 1."/> 
  <fhirVersion value="5.0.0"/> 
  <mapping> 
    <identity value="rim"/> 
    <uri value="http://hl7.org/v3"/> 
    <name value="RIM Mapping"/> 
  </mapping> 
  <kind value="complex-type"/> 
  <abstract value="false"/> 
  <context> 
    <type value="element"/> 
    <expression value="Questionnaire.item"/> 
  </context> 
  <context> 
    <type value="element"/> 
    <expression value="ElementDefinition"/> 
  </context> 
  <contextInvariant value="type!='display' and (required=true or %extension.valueInteger=0)"/> 
  <type value="Extension"/> 
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
  <derivation value="constraint"/> 
  <snapshot> 
    <element id="Extension">
      <path value="Extension"/> 
      <short value="Minimum repetitions"/> 
      <definition value="The minimum number of times the group must appear, or the minimum number of answers

       for a question - when greater than 1."/> 
      <comment value="Default assumption for &quot;required&quot; elements is minOccurs=1.  See additional

       guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.h
      tml#minOccurs)."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Extension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A - MIF rather than RIM level"/> 
      </mapping> 
    </element> 
    <element id="Extension.id">
      <path value="Extension.id"/> 
      <representation value="xmlAttr"/> 
      <short value="Unique id for inter-element referencing"/> 
      <definition value="Unique id for the element within a resource (for internal references). This may

       be any string value that does not contain spaces."/> 
      <min value="0"/> 
      <max value="1"/> 
      <base> 
        <path value="Element.id"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="id"/> 
        </extension> 
        <code value="http://hl7.org/fhirpath/System.String"/> 
      </type> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="n/a"/> 
      </mapping> 
    </element> 
    <element id="Extension.extension">
      <path value="Extension.extension"/> 
      <slicing> 
        <discriminator> 
          <type value="value"/> 
          <path value="url"/> 
        </discriminator> 
        <description value="Extensions are always sliced by (at least) url"/> 
        <rules value="open"/> 
      </slicing> 
      <short value="Extension"/> 
      <definition value="An Extension"/> 
      <min value="0"/> 
      <max value="0"/> 
      <base> 
        <path value="Element.extension"/> 
        <min value="0"/> 
        <max value="*"/> 
      </base> 
      <type> 
        <code value="Extension"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <constraint> 
        <key value="ext-1"/> 
        <severity value="error"/> 
        <human value="Must have either extensions or value[x], not both"/> 
        <expression value="extension.exists() != value.exists()"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Extension"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
    </element> 
    <element id="Extension.url">
      <path value="Extension.url"/> 
      <representation value="xmlAttr"/> 
      <short value="identifies the meaning of the extension"/> 
      <definition value="Source of the definition for the extension code - a logical name or a URL."/> 
      <comment value="The definition may point directly to a computable or human-readable definition

       of the extensibility codes, or it may be a logical URI as declared in some other
       specification. The definition SHALL be a URI for the Structure Definition defining
       the extension."/> 
      <min value="1"/> 
      <max value="1"/> 
      <base> 
        <path value="Extension.url"/> 
        <min value="1"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
          <valueUrl value="uri"/> 
        </extension> 
        <code value="http://hl7.org/fhirpath/System.String"/> 
      </type> 
      <fixedUri value="http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs"/> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
    <element id="Extension.value[x]">
      <path value="Extension.value[x]"/> 
      <short value="Value of extension"/> 
      <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](

      extensibility.html) for a list)."/> 
      <min value="1"/> 
      <max value="1"/> 
      <base> 
        <path value="Extension.value[x]"/> 
        <min value="0"/> 
        <max value="1"/> 
      </base> 
      <type> 
        <code value="integer"/> 
      </type> 
      <constraint> 
        <key value="ele-1"/> 
        <severity value="error"/> 
        <human value="All FHIR elements must have a @value or children"/> 
        <expression value="hasValue() or (children().count() &gt; id.count())"/> 
        <source value="http://hl7.org/fhir/StructureDefinition/Element"/> 
      </constraint> 
      <isModifier value="false"/> 
      <isSummary value="false"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A"/> 
      </mapping> 
    </element> 
  </snapshot> 
  <differential> 
    <element id="Extension">
      <path value="Extension"/> 
      <short value="Minimum repetitions"/> 
      <definition value="The minimum number of times the group must appear, or the minimum number of answers

       for a question - when greater than 1."/> 
      <comment value="Default assumption for &quot;required&quot; elements is minOccurs=1.  See additional

       guidance and examples in the [SDC implementation guide](http://hl7.org/fhir/uv/sdc/behavior.h
      tml#minOccurs)."/> 
      <min value="0"/> 
      <max value="1"/> 
      <mapping> 
        <identity value="rim"/> 
        <map value="N/A - MIF rather than RIM level"/> 
      </mapping> 
    </element> 
    <element id="Extension.extension">
      <path value="Extension.extension"/> 
      <max value="0"/> 
    </element> 
    <element id="Extension.url">
      <path value="Extension.url"/> 
      <fixedUri value="http://hl7.org/fhir/StructureDefinition/questionnaire-minOccurs"/> 
    </element> 
    <element id="Extension.value[x]">
      <path value="Extension.value[x]"/> 
      <min value="1"/> 
      <type> 
        <code value="integer"/> 
      </type> 
    </element> 
  </differential> 

</

StructureDefinition

>

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.