@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 -------------------------------------------------------------------

<http://fhir.hl7.org.vn/core/Observation/ExampleObservationLabHbA1c> a fhir:Observation ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ExampleObservationLabHbA1c"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-observation-lab"^^xsd:anyURI ;
       fhir:l <http://fhir.hl7.org.vn/core/StructureDefinition/vn-core-observation-lab>
     ] )
  ] ; # 
  fhir:language [ fhir:v "vi"] ; # 
  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>Generated Narrative: Observation ExampleObservationLabHbA1c</b></p><a name=\"ExampleObservationLabHbA1c\"> </a><a name=\"hcExampleObservationLabHbA1c\"> </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-observation-lab.html\">Xét nghiệm VN Core — VN Core Observation Laboratory Profile</a></p></div><p><b>status</b>: Final</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/observation-category laboratory}\">Laboratory</span></p><p><b>code</b>: <span title=\"Codes:{http://loinc.org 4548-4}\">HbA1c (Hemoglobin glycated)</span></p><p><b>subject</b>: <a href=\"Patient-ExamplePatientNguyenVanAn.html\">Nguyễn Văn An</a></p><p><b>encounter</b>: <a href=\"Encounter-ExampleEncounterOutpatient.html\">Encounter: extension = Khám chữa bệnh ban đầu; status = finished; class = ambulatory (ActCode#AMB); period = 2026-03-19 08:30:00+0700 --&gt; 2026-03-19 11:00:00+0700; reasonCode = </a></p><p><b>effective</b>: 2026-04-20 09:30:00+0700</p><p><b>performer</b>: <a href=\"Practitioner-ExamplePractitionerBSCKII.html\">BS CKII Nguyễn Thị Lan</a></p><p><b>value</b>: 7.2 %<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code% = '%')</span></p><p><b>interpretation</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation H}\">High</span></p><p><b>note</b>: </p><blockquote><div><p>HbA1c 7.2% — kiểm soát đường huyết chưa đạt mục tiêu (&lt; 7.0% cho BN ĐTĐ per ADA 2026). Tương đương đường huyết trung bình ~8.6 mmol/L. Cần điều chỉnh phác đồ điều trị: xem xét tăng liều Metformin hoặc bổ sung thuốc nhóm GLP-1 RA / SGLT-2i. Tư vấn chế độ ăn, tăng cường vận động. Tái xét nghiệm HbA1c sau 3 tháng.</p>\n</div></blockquote><blockquote><p><b>referenceRange</b></p><p><b>high</b>: 5.7 %<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code% = '%')</span></p><p><b>text</b>: &lt; 5.7% (bình thường)</p></blockquote><blockquote><p><b>referenceRange</b></p><p><b>low</b>: 5.7 %<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code% = '%')</span></p><p><b>high</b>: 6.4 %<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code% = '%')</span></p><p><b>text</b>: 5.7 – 6.4% (tiền đái tháo đường)</p></blockquote><blockquote><p><b>referenceRange</b></p><p><b>low</b>: 6.5 %<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code% = '%')</span></p><p><b>text</b>: ≥ 6.5% (đái tháo đường)</p></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "final"] ; # 
  fhir:category ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/observation-category"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/observation-category>
       ] ;
       fhir:code [ fhir:v "laboratory" ] ;
       fhir:display [ fhir:v "Laboratory" ]
     ] )
  ] ) ; # 
  fhir:code [
     fhir:coding ( [
       a loinc:4548-4 ;
       fhir:system [
         fhir:v "http://loinc.org"^^xsd:anyURI ;
         fhir:l <http://loinc.org>
       ] ;
       fhir:code [ fhir:v "4548-4" ] ;
       fhir:display [ fhir:v "Hemoglobin A1c/Hemoglobin.total in Blood" ]
     ] ) ;
     fhir:text [ fhir:v "HbA1c (Hemoglobin glycated)" ]
  ] ; # 
  fhir:subject [
     fhir:l <http://fhir.hl7.org.vn/core/Patient/ExamplePatientNguyenVanAn> ;
     fhir:reference [ fhir:v "Patient/ExamplePatientNguyenVanAn" ] ;
     fhir:display [ fhir:v "Nguyễn Văn An" ]
  ] ; # 
  fhir:encounter [
     fhir:l <http://fhir.hl7.org.vn/core/Encounter/ExampleEncounterOutpatient> ;
     fhir:reference [ fhir:v "Encounter/ExampleEncounterOutpatient" ]
  ] ; # 
  fhir:effective [
     a fhir:DateTime ;
     fhir:v "2026-04-20T09:30:00+07:00"^^xsd:dateTime
  ] ; # 
  fhir:performer ( [
     fhir:l <http://fhir.hl7.org.vn/core/Practitioner/ExamplePractitionerBSCKII> ;
     fhir:reference [ fhir:v "Practitioner/ExamplePractitionerBSCKII" ] ;
     fhir:display [ fhir:v "BS CKII Nguyễn Thị Lan" ]
  ] ) ; # 
  fhir:value [
     a fhir:Quantity ;
     fhir:value [ fhir:v 7.2 ] ;
     fhir:unit [ fhir:v "%" ] ;
     fhir:system [
       fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
       fhir:l <http://unitsofmeasure.org>
     ] ;
     fhir:code [ fhir:v "%" ]
  ] ; # 
  fhir:interpretation ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation>
       ] ;
       fhir:code [ fhir:v "H" ] ;
       fhir:display [ fhir:v "High" ]
     ] )
  ] ) ; # 
  fhir:note ( [
     fhir:text [ fhir:v "HbA1c 7.2% — kiểm soát đường huyết chưa đạt mục tiêu (< 7.0% cho BN ĐTĐ per ADA 2026). Tương đương đường huyết trung bình ~8.6 mmol/L. Cần điều chỉnh phác đồ điều trị: xem xét tăng liều Metformin hoặc bổ sung thuốc nhóm GLP-1 RA / SGLT-2i. Tư vấn chế độ ăn, tăng cường vận động. Tái xét nghiệm HbA1c sau 3 tháng." ]
  ] ) ; # 
  fhir:referenceRange ( [
     fhir:high [
       fhir:value [ fhir:v 5.7 ] ;
       fhir:unit [ fhir:v "%" ] ;
       fhir:system [
         fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
         fhir:l <http://unitsofmeasure.org>
       ] ;
       fhir:code [ fhir:v "%" ]
     ] ;
     fhir:text [ fhir:v "< 5.7% (bình thường)" ]
  ] [
     fhir:low [
       fhir:value [ fhir:v 5.7 ] ;
       fhir:unit [ fhir:v "%" ] ;
       fhir:system [
         fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
         fhir:l <http://unitsofmeasure.org>
       ] ;
       fhir:code [ fhir:v "%" ]
     ] ;
     fhir:high [
       fhir:value [ fhir:v 6.4 ] ;
       fhir:unit [ fhir:v "%" ] ;
       fhir:system [
         fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
         fhir:l <http://unitsofmeasure.org>
       ] ;
       fhir:code [ fhir:v "%" ]
     ] ;
     fhir:text [ fhir:v "5.7 – 6.4% (tiền đái tháo đường)" ]
  ] [
     fhir:low [
       fhir:value [ fhir:v 6.5 ] ;
       fhir:unit [ fhir:v "%" ] ;
       fhir:system [
         fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
         fhir:l <http://unitsofmeasure.org>
       ] ;
       fhir:code [ fhir:v "%" ]
     ] ;
     fhir:text [ fhir:v "≥ 6.5% (đái tháo đường)" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

