@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 -------------------------------------------------------------------

<https://profiles.ihe.net/ITI/MHD/Bundle/ex-findDocumentReferencesResponseFullTextSearch> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ex-findDocumentReferencesResponseFullTextSearch"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.FindDocumentReferencesResponseMessageFullTextSearch"^^xsd:anyURI ;
       fhir:link <https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.FindDocumentReferencesResponseMessageFullTextSearch>
     ] ) ;
     fhir:security ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "HTEST" ]
     ] )
  ] ; # 
  fhir:type [ fhir:v "searchset"] ; # 
  fhir:timestamp [ fhir:v "2021-04-16T11:32:24Z"^^xsd:dateTime] ; # 
  fhir:total [ fhir:v "1"^^xsd:nonNegativeInteger] ; # 
  fhir:link ( [
     fhir:relation [ fhir:v "self" ] ;
     fhir:url [ fhir:v "test.fhir.net/R4/fhir/DocumentReference?patient=9876&status=current"^^xsd:anyURI ]
  ] ) ; # 
  fhir:entry ( [
     fhir:fullUrl [ fhir:v "http://example.org/DocumentReference/in-DocumentReferenceMinimalFullTextSearchPDF"^^xsd:anyURI ] ;
     fhir:resource ( <http://example.org/DocumentReference/in-DocumentReferenceMinimalFullTextSearchPDF> ) ;
     fhir:search [
       fhir:extension ( [
         fhir:extension ( [
           fhir:url [ fhir:v "snippet"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:string ;
             fhir:v "The patient was diagnosed with <mark>hypertension</mark> and started on antihypertensive therapy."
           ]
         ] [
           fhir:url [ fhir:v "pageNumber"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:string ;
             fhir:v "1"
           ]
         ] ) ;
         fhir:url [ fhir:v "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-full-text-search-match-snippet"^^xsd:anyURI ]
       ] [
         fhir:extension ( [
           fhir:url [ fhir:v "snippet"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:string ;
             fhir:v "A history of <mark>hypertension</mark> was noted during the previous hospital admission."
           ]
         ] [
           fhir:url [ fhir:v "pageNumber"^^xsd:anyURI ] ;
           fhir:value [
             a fhir:string ;
             fhir:v "23"
           ]
         ] ) ;
         fhir:url [ fhir:v "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-full-text-search-match-snippet"^^xsd:anyURI ]
       ] [
         fhir:url [ fhir:v "https://profiles.ihe.net/ITI/MHD/StructureDefinition/ihe-full-text-search-match-total-hits"^^xsd:anyURI ] ;
         fhir:value [
           a fhir:integer ;
           fhir:v 2
         ]
       ] ) ;
       fhir:mode [ fhir:v "match" ] ;
       fhir:score [ fhir:v 0.9 ]
     ]
  ] ) . # 

<http://example.org/DocumentReference/in-DocumentReferenceMinimalFullTextSearchPDF> a fhir:DocumentReference ;
  fhir:id [ fhir:v "in-DocumentReferenceMinimalFullTextSearchPDF"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.DocumentReference"^^xsd:anyURI ;
       fhir:link <https://profiles.ihe.net/ITI/MHD/StructureDefinition/IHE.MHD.Minimal.DocumentReference>
     ] ) ;
     fhir:security ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ActReason"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "HTEST" ]
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"DocumentReference_in-DocumentReferenceMinimalFullTextSearchPDF\"> </a><p class=\"res-header-id\"><b>Generated Narrative: DocumentReference in-DocumentReferenceMinimalFullTextSearchPDF</b></p><a name=\"in-DocumentReferenceMinimalFullTextSearchPDF\"> </a><a name=\"hcin-DocumentReferenceMinimalFullTextSearchPDF\"> </a><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\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-IHE.MHD.Minimal.DocumentReference.html\">MHD DocumentReference Minimal</a></p><p style=\"margin-bottom: 0px\">Security Label: <a href=\"http://terminology.hl7.org/7.2.0/CodeSystem-v3-ActReason.html\">test health data (Details: ActReason code HTEST = 'test health data')</a></p></div><p><b>masterIdentifier</b>: Identifier type for XDS UniqueId/urn:oid:1.2.840.113556.1.8000.2554.53432.348.12973.17740.34205.4355.50220.62012</p><p><b>identifier</b>: Identifier type for XDS entryUUID/urn:uuid:7d5bb8ac-68ee-4926-85e7-b8aac8e1f09d (use: official, )</p><p><b>status</b>: Current</p><blockquote><p><b>content</b></p><h3>Attachments</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>ContentType</b></td><td><b>Url</b></td></tr><tr><td style=\"display: none\">*</td><td>application/pdf</td><td><a href=\"http://example.com/nowhere.pdf\">http://example.com/nowhere.pdf</a></td></tr></table></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:masterIdentifier [
     fhir:type [
       fhir:coding ( [
         fhir:system [ fhir:v "https://profiles.ihe.net/ITI/MHD/CodeSystem/IHE.MHD.MHDIdentifierType"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "uniqueId" ]
       ] )
     ] ;
     fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "urn:oid:1.2.840.113556.1.8000.2554.53432.348.12973.17740.34205.4355.50220.62012" ]
  ] ; # 
  fhir:identifier ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:type [
       fhir:coding ( [
         fhir:system [ fhir:v "https://profiles.ihe.net/ITI/MHD/CodeSystem/IHE.MHD.MHDIdentifierType"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "entryUUID" ]
       ] )
     ] ;
     fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ;
     fhir:value [ fhir:v "urn:uuid:7d5bb8ac-68ee-4926-85e7-b8aac8e1f09d" ]
  ] ) ; # 
  fhir:status [ fhir:v "current"] ; # 
  fhir:content ( [
     fhir:attachment [
       fhir:contentType [ fhir:v "application/pdf" ] ;
       fhir:url [ fhir:v "http://example.com/nowhere.pdf"^^xsd:anyURI ]
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

