@prefix fhir: <http://hl7.org/fhir/> .
@prefix loinc: <http://loinc.org/rdf#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://fhir.hl7.org.vn/core/DocumentReference/ExampleDocumentReferenceOfficialConversionWithoutSignature> a fhir:DocumentReference ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "ExampleDocumentReferenceOfficialConversionWithoutSignature"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-document-reference" ;
       fhir:index -1 ;
       fhir:link <http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-document-reference>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "vi"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "extensions" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: DocumentReference ExampleDocumentReferenceOfficialConversionWithoutSignature</b></p><a name=\"ExampleDocumentReferenceOfficialConversionWithoutSignature\"> </a><a name=\"hcExampleDocumentReferenceOfficialConversionWithoutSignature\"> </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-vn-core-document-reference.html\">Tài liệu y tế VN Core — VN Core DocumentReference Profile</a></p></div><blockquote><p><b>Bằng chứng chuyển đổi giấy ↔ điện tử — Paper/Electronic Conversion Evidence Extension</b></p><ul><li>direction: paper-to-data</li><li>conversionMark: CĐ-BAG/2026/CR-004821</li><li>convertedBy: <a href=\"Organization-ExampleOrganizationChoRay.html\">Bệnh viện Chợ Rẫy</a></li><li>integrityMethod: <span title=\"Codes:\">SHA-256 của tệp PDF, đối chiếu với sổ theo dõi số hoá của phòng Kế hoạch tổng hợp</span></li><li>sourceReference: Bệnh án giấy số 2026/NT-04821, lưu trữ kho hồ sơ tầng hầm B1</li><li>convertedAt: 2026-03-20 09:15:00+0700</li><li>officialDocument: true</li></ul></blockquote><p><b>status</b>: Current</p><p><b>type</b>: <span title=\"Codes:{http://loinc.org 34133-9}\">Bệnh án giấy (scan PDF)</span></p><p><b>category</b>: <span title=\"Codes:{http://loinc.org 11503-0}\">Bệnh án</span></p><p><b>subject</b>: <a href=\"Patient-ExamplePatientNguyenVanAn.html\">Nguyễn Văn An</a></p><p><b>date</b>: 2026-03-21 14:00:00+0700</p><p><b>author</b>: <a href=\"Organization-ExampleOrganizationChoRay.html\">Bệnh viện Chợ Rẫy</a></p><p><b>custodian</b>: <a href=\"Organization-ExampleOrganizationChoRay.html\">Bệnh viện Chợ Rẫy</a></p><p><b>description</b>: Bệnh án giấy ngoại trú được số hoá — scan PDF. Theo TT 13/2025/TT-BYT Điều 5: CSYT phải chuyển đổi bệnh án giấy sang điện tử trước 31/12/2026. Bệnh án ngày 21/3/2026 — BV Chợ Rẫy.</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>Size</b></td><td><b>Title</b></td><td><b>Creation</b></td></tr><tr><td style=\"display: none\">*</td><td>application/pdf</td><td>Vietnamese</td><td>2048000</td><td>BenhAn-NgoaiTru-NguyenVanAn-Scan-20260321.pdf</td><td>2026-03-21 14:00:00+0700</td></tr></table></blockquote><h3>Contexts</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Encounter</b></td><td><b>Period</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Encounter-ExampleEncounterOutpatient.html\">Khám ngoại trú 21/03/2026</a></td><td>2026-03-21 --&gt; 2026-03-21</td></tr></table></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index -1 ;
     fhir:Element.extension [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "direction" ] ;
       fhir:Extension.valueCode [ fhir:value "paper-to-data" ]
     ], [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "conversionMark" ] ;
       fhir:Extension.valueString [ fhir:value "CĐ-BAG/2026/CR-004821" ]
     ], [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "convertedBy" ] ;
       fhir:Extension.valueReference [
         fhir:link <http://fhir.hl7.org.vn/core/Organization/ExampleOrganizationChoRay> ;
         fhir:Reference.reference [ fhir:value "Organization/ExampleOrganizationChoRay" ] ;
         fhir:Reference.display [ fhir:value "Bệnh viện Chợ Rẫy" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "integrityMethod" ] ;
       fhir:Extension.valueCodeableConcept [
         fhir:CodeableConcept.text [ fhir:value "SHA-256 của tệp PDF, đối chiếu với sổ theo dõi số hoá của phòng Kế hoạch tổng hợp" ]
       ]
     ], [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "sourceReference" ] ;
       fhir:Extension.valueString [ fhir:value "Bệnh án giấy số 2026/NT-04821, lưu trữ kho hồ sơ tầng hầm B1" ]
     ], [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "convertedAt" ] ;
       fhir:Extension.valueDateTime [ fhir:value "2026-03-20T09:15:00+07:00"^^xsd:dateTime ]
     ], [
       fhir:index -1 ;
       fhir:Extension.url [ fhir:value "officialDocument" ] ;
       fhir:Extension.valueBoolean [ fhir:value "true"^^xsd:boolean ]
     ] ;
     fhir:Extension.url [ fhir:value "http://fhir.hl7.org.vn/core/StructureDefinition/vn-ext-paper-conversion" ]
  ] ;
  fhir:DocumentReference.status [ fhir:value "current"] ;
  fhir:DocumentReference.type [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       a loinc:34133-9 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "34133-9" ] ;
       fhir:Coding.display [ fhir:value "Summary of episode note" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "Bệnh án giấy (scan PDF)" ]
  ] ;
  fhir:DocumentReference.category [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       a loinc:11503-0 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "11503-0" ] ;
       fhir:Coding.display [ fhir:value "Medical records" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "Bệnh án" ]
  ] ;
  fhir:DocumentReference.subject [
     fhir:link <http://fhir.hl7.org.vn/core/Patient/ExamplePatientNguyenVanAn> ;
     fhir:Reference.reference [ fhir:value "Patient/ExamplePatientNguyenVanAn" ] ;
     fhir:Reference.display [ fhir:value "Nguyễn Văn An" ]
  ] ;
  fhir:DocumentReference.date [ fhir:value "2026-03-21T14:00:00+07:00"^^xsd:dateTime] ;
  fhir:DocumentReference.author [
     fhir:index -1 ;
     fhir:link <http://fhir.hl7.org.vn/core/Organization/ExampleOrganizationChoRay> ;
     fhir:Reference.reference [ fhir:value "Organization/ExampleOrganizationChoRay" ] ;
     fhir:Reference.display [ fhir:value "Bệnh viện Chợ Rẫy" ]
  ] ;
  fhir:DocumentReference.custodian [
     fhir:link <http://fhir.hl7.org.vn/core/Organization/ExampleOrganizationChoRay> ;
     fhir:Reference.reference [ fhir:value "Organization/ExampleOrganizationChoRay" ] ;
     fhir:Reference.display [ fhir:value "Bệnh viện Chợ Rẫy" ]
  ] ;
  fhir:DocumentReference.description [ fhir:value "Bệnh án giấy ngoại trú được số hoá — scan PDF. Theo TT 13/2025/TT-BYT Điều 5: CSYT phải chuyển đổi bệnh án giấy sang điện tử trước 31/12/2026. Bệnh án ngày 21/3/2026 — BV Chợ Rẫy."] ;
  fhir:DocumentReference.content [
     fhir:index -1 ;
     fhir:DocumentReference.content.attachment [
       fhir:Attachment.contentType [ fhir:value "application/pdf" ] ;
       fhir:Attachment.language [ fhir:value "vi" ] ;
       fhir:Attachment.size [ fhir:value "2048000"^^xsd:nonNegativeInteger ] ;
       fhir:Attachment.title [ fhir:value "BenhAn-NgoaiTru-NguyenVanAn-Scan-20260321.pdf" ] ;
       fhir:Attachment.creation [ fhir:value "2026-03-21T14:00:00+07:00"^^xsd:dateTime ]
     ]
  ] ;
  fhir:DocumentReference.context [
     fhir:DocumentReference.context.encounter [
       fhir:index -1 ;
       fhir:link <http://fhir.hl7.org.vn/core/Encounter/ExampleEncounterOutpatient> ;
       fhir:Reference.reference [ fhir:value "Encounter/ExampleEncounterOutpatient" ] ;
       fhir:Reference.display [ fhir:value "Khám ngoại trú 21/03/2026" ]
     ] ;
     fhir:DocumentReference.context.period [
       fhir:Period.start [ fhir:value "2026-03-21"^^xsd:date ] ;
       fhir:Period.end [ fhir:value "2026-03-21"^^xsd:date ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://fhir.hl7.org.vn/core/DocumentReference/ExampleDocumentReferenceOfficialConversionWithoutSignature.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

