Release 4B R5 Final QA

This page is part of the FHIR Specification (v4.3.0: R4B (v5.0.0-draft-final: Final QA Preview for R5 - STU see ballot notes ). 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

Group-example-herd1.ttl

Example Group/herd1 (Turtle)

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

Raw Turtle (+ also see Turtle/RDF Format Specification )

Herd of 2500 breeding sows

@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

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

<http://hl7.org/fhir/Group/herd1> a fhir:Group;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "herd1"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource &quot;herd1&quot; </p></div><p><b>identifier</b>: id: 20171120-1234</p><p><b>active</b>: true</p><p><b>type</b>: animal</p><p><b>actual</b>: true</p><p><b>code</b>: Porcine <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://browser.ihtsdotools.org/\">SNOMED CT</a>#388393002 &quot;Genus Sus (organism)&quot;; www.aphis.usda.gov#POR &quot;porcine&quot;)</span></p><p><b>name</b>: Breeding herd</p><p><b>quantity</b>: 2500</p><h3>Characteristics</h3><table class=\"grid\"><tr><td>-</td><td><b>Code</b></td><td><b>Value[x]</b></td><td><b>Exclude</b></td></tr><tr><td>*</td><td>gender <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ()</span></td><td>female <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ()</span></td><td>false</td></tr></table></div>"
  ];
  fhir:DomainResource.extension [
     fhir:index 0;
     fhir:Extension.url [ fhir:value "http://example.org/fhir/StructureDefinition/owner" ];
     fhir:Extension.valueReference [
       fhir:link <http://hl7.org/fhir/RelatedPerson/peter>;
       fhir:Reference.reference [ fhir:value "RelatedPerson/peter" ];
       fhir:Reference.display [ fhir:value "Peter Chalmers" ]

[a fhir:Group ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "herd1"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: Group</b><a name=\"herd1\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource Group &quot;herd1&quot; </p></div><p><b>identifier</b>: <span title=\"  diagnostic lab's identifier  \">id: 20171120-1234</span></p><p><b>active</b>: true</p><p><b>type</b>: animal</p><p><b>membership</b>: enumerated</p><p><b>code</b>: <span title=\"  describes a bunch of female breeding sows  added a translation from US APHIS codes to SNOMED CT \">Porcine <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://browser.ihtsdotools.org/\">SNOMED CT</a>#388393002 &quot;Genus Sus (organism)&quot;; www.aphis.usda.gov#POR &quot;porcine&quot;)</span></span></p><p><b>name</b>: Breeding herd</p><p><b>quantity</b>: 2500</p><h3>Characteristics</h3><table class=\"grid\"><tr><td>-</td><td><b>Code</b></td><td><b>Value[x]</b></td><td><b>Exclude</b></td></tr><tr><td>*</td><td>gender <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ()</span></td><td>female <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ()</span></td><td><span title=\"  required element - false means they are all sows  \">false</span></td></tr></table></div>"
  ] ; #    added this extension to reference the owner (client) of the herd   
  fhir:extension ( [
     fhir:url [ fhir:v "http://example.org/fhir/StructureDefinition/owner"^^xsd:anyURI ] ;
     fhir:value [
       a fhir:Reference ;
       fhir:reference [ fhir:v "RelatedPerson/peter" ] ;
       fhir:display [ fhir:v "Peter Chalmers" ]

     ]
  ];
  fhir:Group.identifier [
     fhir:index 0;
     fhir:Identifier.system [ fhir:value "https://vetmed.iastate.edu/vdl" ];
     fhir:Identifier.value [ fhir:value "20171120-1234" ]
  ];
  fhir:Group.active [ fhir:value "true"^^xsd:boolean];
  fhir:Group.type [ fhir:value "animal"];
  fhir:Group.actual [ fhir:value "true"^^xsd:boolean];
  fhir:Group.code [
     fhir:CodeableConcept.coding [
       fhir:index 0;
       a sct:388393002;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
       fhir:Coding.code [ fhir:value "388393002" ];
       fhir:Coding.display [ fhir:value "Genus Sus (organism)" ]
     ], [
       fhir:index 1;
       fhir:Coding.system [ fhir:value "https://www.aphis.usda.gov" ];
       fhir:Coding.code [ fhir:value "POR" ];
       fhir:Coding.display [ fhir:value "porcine" ]
     ];
     fhir:CodeableConcept.text [ fhir:value "Porcine" ]
  ];
  fhir:Group.name [ fhir:value "Breeding herd"];
  fhir:Group.quantity [ fhir:value "2500"^^xsd:nonNegativeInteger];
  fhir:Group.characteristic [
     fhir:index 0;
     fhir:Group.characteristic.code [
       fhir:CodeableConcept.text [ fhir:value "gender" ]
     ];
     fhir:Group.characteristic.valueCodeableConcept [
       fhir:CodeableConcept.text [ fhir:value "female" ]
     ];
     fhir:Group.characteristic.exclude [ fhir:value "false"^^xsd:boolean ]
  ] .

<http://hl7.org/fhir/RelatedPerson/peter> a fhir:RelatedPerson .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/Group/herd1.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://build.fhir.org/Group/herd1.ttl> .

  ] ) ; # 
  fhir:identifier ( [
     fhir:system [ fhir:v "https://vetmed.iastate.edu/vdl"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "20171120-1234" ]
  ] ) ; #    diagnostic lab's identifier   
  fhir:active [ fhir:v "true"^^xsd:boolean] ; # 
  fhir:type [ fhir:v "animal"] ; # 
  fhir:membership [ fhir:v "enumerated"] ; # 
  fhir:code [
     fhir:coding ( [
       a sct:388393002 ;
       fhir:system [ fhir:v "http://snomed.info/sct"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "388393002" ] ;
       fhir:display [ fhir:v "Genus Sus (organism)" ]
     ] [
       fhir:system [ fhir:v "https://www.aphis.usda.gov"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "POR" ] ;
       fhir:display [ fhir:v "porcine" ]
     ] ) ;
     fhir:text [ fhir:v "Porcine" ]
  ] ; #    describes a bunch of female breeding sows  added a translation from US APHIS codes to SNOMED CT  
  fhir:name [ fhir:v "Breeding herd"] ; # 
  fhir:quantity [ fhir:v "2500"^^xsd:nonNegativeInteger] ; # 
  fhir:characteristic ( [
     fhir:code [
       fhir:text [ fhir:v "gender" ]
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:text [ fhir:v "female" ]
     ] ;
     fhir:exclude [ fhir:v "false"^^xsd:boolean ] #    required element - false means they are all sows   
  ] )] . #    the share the common charasteristic of being sows   


# -------------------------------------------------------------------------------------


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.