@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <https://loinc.org/rdf/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

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

#  
#This example is used for DetectedIssue/Duplicate Therapy example will need to edit that as well
#
# 
#   insert contents here  

<http://hl7.org/fhir/ServiceRequest/subrequest> a fhir:ServiceRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "subrequest"] ; # 
  fhir:basedOn ( [
     fhir:display [ fhir:v "Original Request" ]
  ] ) ; #  	<extension url="http://hl7.org/fhir/StructureDefinition/bodysitecode">
#		<valueCodeableConcept>
#			<coding>
#				<system value="http://snomed.info/sct"/>
#				<code value="51185008"/>
#				<display value="Thoracic structure"/>
#			</coding>
#		</valueCodeableConcept>
#</extension>
#	 
  fhir:replaces ( [
     fhir:display [ fhir:v "Previous allergy test" ]
  ] ) ; # 
  fhir:requisition [
     fhir:value [ fhir:v "A13848392" ] #   from Element: extension  
  ] ; #   0..1 The value that is unique  
  fhir:status [ fhir:v "active"] ; # 
  fhir:intent [ fhir:v "instance-order"] ; # 
  fhir:priority [ fhir:v "routine"] ; # 
  fhir:code [
     fhir:concept [
       fhir:coding ( [
         a loinc:35542-0 ;
         fhir:system [
           fhir:v "http://loinc.org"^^xsd:anyURI ;
           fhir:l <http://loinc.org>
         ] ;
         fhir:code [ fhir:v "35542-0" ]
       ] ) ;
       fhir:text [ fhir:v "Peanut IgG" ]
     ]
  ] ; # 
  fhir:subject [
     fhir:l <http://hl7.org/fhir/Patient/dicom> ;
     fhir:reference [ fhir:v "Patient/dicom" ]
  ] ; # 
  fhir:occurrence [
     a fhir:DateTime ;
     fhir:v "2013-05-08T09:33:27+07:00"^^xsd:dateTime
  ] ; # 
  fhir:requester [
     fhir:l <http://hl7.org/fhir/Practitioner/example> ;
     fhir:reference [ fhir:v "Practitioner/example" ] ;
     fhir:display [ fhir:v "Dr. Adam Careful" ]
  ] ; # 
  fhir:performerType [
     fhir:coding ( [
       fhir:display [ fhir:v "Qualified nurse" ]
     ] ) ;
     fhir:text [ fhir:v "Nurse" ]
  ] ; # 
  fhir:reason ( [
     fhir:concept [
       fhir:text [ fhir:v "Check for Peanut Allergy" ]
     ]
  ] ) . # 

<http://hl7.org/fhir/Patient/dicom> a fhir:Patient .

<http://hl7.org/fhir/Practitioner/example> a fhir:Practitioner .

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

