@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 -------------------------------------------------------------------

<https://interop.aphp.fr/ig/fhir/atelier/DocumentReference/ajout> a fhir:DocumentReference ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ajout"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Narratif généré : RéférenceDocument ajout</b></p><a name=\"ajout\"> </a><a name=\"hcajout\"> </a><p><b>masterIdentifier</b>: <code>https://interop.aphp.fr/info/DocumentReference/Z0101</code>/1</p><p><b>status</b>: Current</p><p><b>type</b>: <span title=\"Codes :{http://loinc.org 85208-7}\">CR de télémédecine</span></p><p><b>subject</b>: <a href=\"#hcajout/document-1-patient\">Michel VINCENT (official) Male, Date de Naissance :2000-10-20 ( Patient internal identifier)</a></p><p><b>date</b>: 2025-01-28 14:43:10+0100</p><p><b>author</b>: numéro au hasard, improbable qu'il existe vraiment (Identifier: Identifiant interne/026X033)</p><p><b>authenticator</b>: <a href=\"#hcajout/aph-example\">PractitionerRole</a></p><p><b>custodian</b>: éditeur de gynab (Identifier: <code>https://interop.aphp.fr/info/Device/hopex</code>/Z0101)</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>Language</b></td><td><b>Data</b></td><td><b>Hash</b></td><td><b>Title</b></td><td><b>Creation</b></td></tr><tr><td style=\"display: none\">*</td><td>application/pdf</td><td>Français (France)</td><td><code>JVBERi0xLjQKJXBhcnR4cmVmCjEzMTg1CiUlRU9GCg==</code></td><td><code>sdmytl8EeWu33+ksMenAOhACd4U=</code></td><td>CR</td><td>2025-01-28 14:53:10+0100</td></tr></table></blockquote><hr/><blockquote><p class=\"res-header-id\"><b>Narratif généré : PractitionerRole #aph-example</b></p><a name=\"ajout/aph-example\"> </a><a name=\"hcajout/aph-example\"> </a><p><b>practitioner</b>: <a href=\"#hcajout/with-aph-example\">Practitioner Nicolas GRIFFON </a></p></blockquote><hr/><blockquote><p class=\"res-header-id\"><b>Narratif généré : Patient #document-1-patient</b></p><a name=\"ajout/document-1-patient\"> </a><a name=\"hcajout/document-1-patient\"> </a><p style=\"border: 1px #661aff solid; background-color: #e6e6ff; padding: 10px;\">Michel VINCENT (official) Male, Date de Naissance :2000-10-20 ( Patient internal identifier)</p><hr/></blockquote><hr/><blockquote><p class=\"res-header-id\"><b>Narratif généré : Praticien #with-aph-example</b></p><a name=\"ajout/with-aph-example\"> </a><a name=\"hcajout/with-aph-example\"> </a><p><b>identifier</b>: Employee number/3213039</p><p><b>name</b>: Nicolas GRIFFON </p><p><b>gender</b>: Male</p><p><b>birthDate</b>: 1980-01-01</p></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:contained ( [
     a fhir:PractitionerRole ;
     fhir:id [ fhir:v "aph-example" ] ;
     fhir:practitioner [
       fhir:l <#with-aph-example> ;
       fhir:reference [ fhir:v "#with-aph-example" ]
     ]
  ] [
     a fhir:Patient ;
     fhir:id [ fhir:v "document-1-patient" ] ;
     fhir:identifier ( [
       fhir:type [
         fhir:coding ( [
           fhir:system [
             fhir:v "http://terminology.hl7.org/CodeSystem/v2-0203"^^xsd:anyURI ;
             fhir:l <http://terminology.hl7.org/CodeSystem/v2-0203>
           ] ;
           fhir:code [ fhir:v "PI" ]
         ] )
       ] ;
       fhir:system [
         fhir:v "https://interop.aphp.fr/info/Patient/ipp"^^xsd:anyURI ;
         fhir:l <https://interop.aphp.fr/info/Patient/ipp>
       ] ;
       fhir:value [ fhir:v "8034567890" ]
     ] ) ;
     fhir:name ( [
       fhir:extension ( [
         fhir:url [
           fhir:v "https://hl7.fr/ig/fhir/core/StructureDefinition/fr-core-patient-birth-list-given-name"^^xsd:anyURI ;
           fhir:l <https://hl7.fr/ig/fhir/core/StructureDefinition/fr-core-patient-birth-list-given-name>
         ] ;
         fhir:value [
           a fhir:String ;
           fhir:v "Michel René"
         ]
       ] ) ;
       fhir:use [ fhir:v "official" ] ;
       fhir:family [ fhir:v "VINCENT" ] ;
       fhir:given ( [ fhir:v "Michel" ] )
     ] ) ;
     fhir:gender [ fhir:v "male" ] ;
     fhir:birthDate [ fhir:v "2000-10-20"^^xsd:date ]
  ] [
     a fhir:Practitioner ;
     fhir:id [ fhir:v "with-aph-example" ] ;
     fhir:identifier ( [
       fhir:type [
         fhir:coding ( [
           fhir:system [
             fhir:v "http://terminology.hl7.org/CodeSystem/v2-0203"^^xsd:anyURI ;
             fhir:l <http://terminology.hl7.org/CodeSystem/v2-0203>
           ] ;
           fhir:code [ fhir:v "EI" ]
         ] )
       ] ;
       fhir:system [
         fhir:v "https://interop.aphp.fr/info/Practitioner/aph"^^xsd:anyURI ;
         fhir:l <https://interop.aphp.fr/info/Practitioner/aph>
       ] ;
       fhir:value [ fhir:v "3213039" ]
     ] ) ;
     fhir:name ( [
       fhir:family [ fhir:v "GRIFFON" ] ;
       fhir:given ( [ fhir:v "Nicolas" ] )
     ] ) ;
     fhir:gender [ fhir:v "male" ] ;
     fhir:birthDate [ fhir:v "1980-01-01"^^xsd:date ]
  ] ) ; # 
  fhir:masterIdentifier [
     fhir:system [
       fhir:v "https://interop.aphp.fr/info/DocumentReference/Z0101"^^xsd:anyURI ;
       fhir:l <https://interop.aphp.fr/info/DocumentReference/Z0101>
     ] ;
     fhir:value [ fhir:v "1" ]
  ] ; # 
  fhir:status [ fhir:v "current"] ; # 
  fhir:type [
     fhir:coding ( [
       a loinc:85208-7 ;
       fhir:system [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:code [ fhir:v "85208-7" ] ;
       fhir:display [ fhir:v "CR de télémédecine" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:l <#document-1-patient> ;
     fhir:reference [ fhir:v "#document-1-patient" ]
  ] ; # 
  fhir:date [ fhir:v "2025-01-28T14:43:10+01:00"^^xsd:dateTime] ; # 
  fhir:author ( [
     fhir:type [
       fhir:v "Organization"^^xsd:anyURI ;
       fhir:l fhir:Organization
     ] ;
     fhir:identifier [
       fhir:type [
         fhir:coding ( [
           fhir:system [
             fhir:v "https://hl7.fr/ig/fhir/core/CodeSystem/fr-core-cs-v2-0203"^^xsd:anyURI ;
             fhir:l <https://hl7.fr/ig/fhir/core/CodeSystem/fr-core-cs-v2-0203>
           ] ;
           fhir:code [ fhir:v "INTRN" ]
         ] )
       ] ;
       fhir:system [
         fhir:v "https://interop.aphp.fr/info/Organization/Sirius"^^xsd:anyURI ;
         fhir:l <https://interop.aphp.fr/info/Organization/Sirius>
       ] ;
       fhir:value [ fhir:v "026X033" ]
     ] ;
     fhir:display [ fhir:v "numéro au hasard, improbable qu'il existe vraiment" ]
  ] ) ; # 
  fhir:authenticator [
     fhir:l <#aph-example> ;
     fhir:reference [ fhir:v "#aph-example" ]
  ] ; # 
  fhir:custodian [
     fhir:identifier [
       fhir:system [
         fhir:v "https://interop.aphp.fr/info/Device/hopex"^^xsd:anyURI ;
         fhir:l <https://interop.aphp.fr/info/Device/hopex>
       ] ;
       fhir:value [ fhir:v "Z0101" ]
     ] ;
     fhir:display [ fhir:v "éditeur de gynab" ]
  ] ; # 
  fhir:content ( [
     fhir:attachment [
       fhir:contentType [ fhir:v "application/pdf" ] ;
       fhir:language [ fhir:v "fr-FR" ] ;
       fhir:data [ fhir:v "JVBERi0xLjQKJXBhcnR4cmVmCjEzMTg1CiUlRU9GCg=="^^xsd:base64Binary ] ;
       fhir:hash [ fhir:v "sdmytl8EeWu33+ksMenAOhACd4U="^^xsd:base64Binary ] ;
       fhir:title [ fhir:v "CR" ] ;
       fhir:creation [ fhir:v "2025-01-28T14:53:10+01:00"^^xsd:dateTime ]
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

