Example Group/herd1 (Turtle)
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 -------------------------------------------------------------------
[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: 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 "herd1" </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 "Genus Sus (organism)"; www.aphis.usda.gov#POR "porcine")</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:DomainResource.extension [
fhir:index 0;
fhir:Extension.url [ fhir:value "http://example.org/fhir/StructureDefinition/owner" ];
fhir:Extension.valueReference [
fhir:Reference.reference [ fhir:value "RelatedPerson/peter" ];
fhir:Reference.display [ fhir:value "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" ]
]; # diagnostic lab's identifier
fhir:Group.active [ fhir:value "true"^^xsd:boolean]; #
fhir:Group.type [ fhir:value "animal"]; #
fhir:Group.membership [ fhir:value "enumerated"]; #
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" ]
]; # describes a bunch of female breeding sows added a translation from US APHIS codes to SNOMED CT
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 ] # required element - false means they are all sows
]] . # the share the common charasteristic of being sows
# - ontology header ------------------------------------------------------------
[a owl:Ontology;
owl:imports fhir:fhir.ttl] .
# -------------------------------------------------------------------------------------
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.