@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://emahealth.io/fhir/clinical/ServiceRequest/EjemploEmaServiceRequest> a fhir:ServiceRequest ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "EjemploEmaServiceRequest"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://emahealth.io/fhir/clinical/StructureDefinition/ema-service-request"^^xsd:anyURI ;
       fhir:l <https://emahealth.io/fhir/clinical/StructureDefinition/ema-service-request>
     ] )
  ] ; # 
  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: PeticiónServicio EjemploEmaServiceRequest</b></p><a name=\"EjemploEmaServiceRequest\"> </a><a name=\"hcEjemploEmaServiceRequest\"> </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-ema-service-request.html\">EMA ServiceRequest</a></p></div><p><b>status</b>: Active</p><p><b>intent</b>: Order</p><p><b>code</b>: <span title=\"Codes:{http://loinc.org 4548-4}\">Hemoglobina glicosilada (HbA1c)</span></p><p><b>subject</b>: <a href=\"Patient/ejemplo-patient\">María Fernández</a></p><p><b>encounter</b>: <a href=\"Encounter/ejemplo-encounter\">Consulta control diabético</a></p><p><b>authoredOn</b>: 2026-03-10</p><p><b>requester</b>: <a href=\"Practitioner/ejemplo-practitioner\">Dr. Andrés Soto</a></p></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:intent [ fhir:v "order"] ; # 
  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 "Hemoglobina A1c / Hemoglobina total: Sangre : Punto temporal: Fracción de masa: Cuantitativo:" ]
     ] ) ;
     fhir:text [ fhir:v "Hemoglobina glicosilada (HbA1c)" ]
  ] ; # 
  fhir:subject [
     fhir:l <https://emahealth.io/fhir/clinical/Patient/ejemplo-patient> ;
     fhir:reference [ fhir:v "Patient/ejemplo-patient" ] ;
     fhir:display [ fhir:v "María Fernández" ]
  ] ; # 
  fhir:encounter [
     fhir:l <https://emahealth.io/fhir/clinical/Encounter/ejemplo-encounter> ;
     fhir:reference [ fhir:v "Encounter/ejemplo-encounter" ] ;
     fhir:display [ fhir:v "Consulta control diabético" ]
  ] ; # 
  fhir:authoredOn [ fhir:v "2026-03-10"^^xsd:date] ; # 
  fhir:requester [
     fhir:l <https://emahealth.io/fhir/clinical/Practitioner/ejemplo-practitioner> ;
     fhir:reference [ fhir:v "Practitioner/ejemplo-practitioner" ] ;
     fhir:display [ fhir:v "Dr. Andrés Soto" ]
  ] . # 

# -------------------------------------------------------------------------------------

