@prefix fhir: <http://hl7.org/fhir/> .
@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 -------------------------------------------------------------------

<http://fhir.ch/ig/ch-elm/Bundle/ex-findDocumentReferencesResponse> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ex-findDocumentReferencesResponse"] ; # 
  fhir:type [ fhir:v "searchset"] ; # 
  fhir:timestamp [ fhir:v "2023-10-10T14:30:18.668+02:00"^^xsd:dateTime] ; # 
  fhir:total [ fhir:v "1"^^xsd:nonNegativeInteger] ; # 
  fhir:link ( [
     fhir:relation [ fhir:v "self" ] ;
     fhir:url [
       fhir:v "http://test.fhir.net/R4/fhir/DocumentReference?_lastUpdate=gt2023-10-02T08:00:00+02:00&elm-status=failed"^^xsd:anyURI ;
       fhir:l <http://test.fhir.net/R4/fhir/DocumentReference?_lastUpdate=gt2023-10-02T08:00:00+02:00&elm-status=failed>
     ]
  ] ) ; # 
  fhir:entry ( [
     fhir:fullUrl [
       fhir:v "http://test.fhir.net/R4/fhir/DocumentReference/1-DocumentReferenceResponseFailed"^^xsd:anyURI ;
       fhir:l <http://test.fhir.net/R4/fhir/DocumentReference/1-DocumentReferenceResponseFailed>
     ] ;
     fhir:resource ( <http://test.fhir.net/R4/fhir/DocumentReference/1-DocumentReferenceResponseFailed> )
  ] ) . # 

<http://test.fhir.net/R4/fhir/DocumentReference/1-DocumentReferenceResponseFailed> a fhir:DocumentReference ;
  fhir:id [ fhir:v "1-DocumentReferenceResponseFailed"] ; # 
  fhir:meta [
     fhir:versionId [ fhir:v "2" ] ;
     fhir:lastUpdated [ fhir:v "2023-10-10T13:30:25.00+02:00"^^xsd:dateTime ]
  ] ; # 
  fhir:contained ( [
     a fhir:OperationOutcome ;
     fhir:id [ fhir:v "1-OperationOutcome" ] ;
     fhir:issue ( [
       fhir:severity [ fhir:v "error" ] ;
       fhir:code [ fhir:v "not-supported" ] ;
       fhir:details [
         fhir:text [ fhir:v "unknown type of laboratory report" ]
       ]
     ] )
  ] ) ; # 
  fhir:extension ( [
     fhir:extension ( [
       fhir:url [
         fhir:v "status"^^xsd:anyURI ;
         fhir:l fhir:status
       ] ;
       fhir:value [
         a fhir:Code ;
         fhir:v "failed"
       ]
     ] [
       fhir:url [
         fhir:v "outcome"^^xsd:anyURI ;
         fhir:l fhir:outcome
       ] ;
       fhir:value [
         a fhir:Reference ;
         fhir:l <#1-OperationOutcome> ;
         fhir:reference [ fhir:v "#1-OperationOutcome" ]
       ]
     ] ) ;
     fhir:url [
       fhir:v "http://fhir.ch/ig/ch-elm/StructureDefinition/ch-ext-elm-status"^^xsd:anyURI ;
       fhir:l <http://fhir.ch/ig/ch-elm/StructureDefinition/ch-ext-elm-status>
     ]
  ] ) ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
       fhir:l <urn:ietf:rfc:3986>
     ] ;
     fhir:value [ fhir:v "urn:uuid:1901332d-6012-443f-9690-9291adb2e19d" ]
  ] ) ; # 
  fhir:status [ fhir:v "current"] ; # 
  fhir:date [ fhir:v "2023-10-10T13:30:18.668+02:00"^^xsd:dateTime] ; # 
  fhir:content ( [
     fhir:attachment [
       fhir:url [
         fhir:v "urn:uuid:1901332d-6012-443f-9690-9291adb2e19d"^^xsd:anyURI ;
         fhir:l <urn:uuid:1901332d-6012-443f-9690-9291adb2e19d>
       ]
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

