@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://hl7.org/fhir/us/quality-core/Procedure/example> a fhir:Procedure ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "example"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-procedure" ;
       fhir:index -1 ;
       fhir:link <http://hl7.org/fhir/us/quality-core/StructureDefinition/us-quality-core-procedure>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "en"] ;
  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: Procedure example</b></p><a name=\"example\"> </a><a name=\"hcexample\"> </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-us-quality-core-procedure.html\">US Quality Core Procedure</a></p></div><p><b>R5: When the procedure was first captured in the subject's record (new)</b>: 2026-08-02 09:35:00-0400</p><p><b>status</b>: Completed</p><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 80146002}\">Excision of appendix (procedure)</span></p><p><b>subject</b>: <a href=\"Patient-example.html\">Example Patient  Male, DoB: 1974-12-25 ( Medical record number (use: usual, period: 2001-05-06 --&gt; (ongoing)))</a></p><p><b>encounter</b>: <a href=\"Encounter-example.html\">Encounter: identifier = http://hospital.example.org/encounter-ids#ENC-2026-987654 (use: official, ); status = finished; class = inpatient encounter (ActCode#IMP); type = Hospital admission; priority = urgent; period = 2026-08-01 10:30:00-0400 --&gt; 2026-08-05 14:00:00-0400</a></p><p><b>performed</b>: 2026-08-02 09:20:00-0400 --&gt; 2026-08-02 10:30:00-0400</p><h3>Performers</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Actor</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"Practitioner-example.html\">Example Practitioner</a></td></tr></table><p><b>reasonCode</b>: <span title=\"Codes:{http://snomed.info/sct 21522001}\">Abdominal pain (finding)</span></p><p><b>bodySite</b>: <span title=\"Codes:{http://snomed.info/sct 66754008}\">Appendix structure</span></p><p><b>report</b>: <a href=\"DiagnosticReport-example.html\">Diagnostic Report for 'Glucose Bld-mCnc' for '-&gt;Example Patient'</a></p></div>"
  ] ;
  fhir:DomainResource.extension [
     fhir:index -1 ;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/5.0/StructureDefinition/extension-Procedure.recorded" ] ;
     fhir:Extension.valueDateTime [ fhir:value "2026-08-02T09:35:00-04:00"^^xsd:dateTime ]
  ] ;
  fhir:Procedure.status [ fhir:value "completed"] ;
  fhir:Procedure.code [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       a sct:80146002 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "80146002" ] ;
       fhir:Coding.display [ fhir:value "Excision of appendix (procedure)" ]
     ] ;
     fhir:CodeableConcept.text [ fhir:value "Excision of appendix (procedure)" ]
  ] ;
  fhir:Procedure.subject [
     fhir:link <http://hl7.org/fhir/us/quality-core/Patient/example> ;
     fhir:Reference.reference [ fhir:value "Patient/example" ]
  ] ;
  fhir:Procedure.encounter [
     fhir:link <http://hl7.org/fhir/us/quality-core/Encounter/example> ;
     fhir:Reference.reference [ fhir:value "Encounter/example" ]
  ] ;
  fhir:Procedure.performedPeriod [
     fhir:Period.start [ fhir:value "2026-08-02T09:20:00-04:00"^^xsd:dateTime ] ;
     fhir:Period.end [ fhir:value "2026-08-02T10:30:00-04:00"^^xsd:dateTime ]
  ] ;
  fhir:Procedure.performer [
     fhir:index -1 ;
     fhir:Procedure.performer.actor [
       fhir:link <http://hl7.org/fhir/us/quality-core/Practitioner/example> ;
       fhir:Reference.reference [ fhir:value "Practitioner/example" ] ;
       fhir:Reference.display [ fhir:value "Example Practitioner" ]
     ]
  ] ;
  fhir:Procedure.reasonCode [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       a sct:21522001 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "21522001" ] ;
       fhir:Coding.display [ fhir:value "Abdominal pain (finding)" ]
     ]
  ] ;
  fhir:Procedure.bodySite [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       a sct:66754008 ;
       fhir:Coding.system [ fhir:value "http://snomed.info/sct" ] ;
       fhir:Coding.code [ fhir:value "66754008" ] ;
       fhir:Coding.display [ fhir:value "Appendix structure" ]
     ]
  ] ;
  fhir:Procedure.report [
     fhir:index -1 ;
     fhir:link <http://hl7.org/fhir/us/quality-core/DiagnosticReport/example> ;
     fhir:Reference.reference [ fhir:value "DiagnosticReport/example" ]
  ] .

<http://hl7.org/fhir/us/quality-core/Patient/example> a fhir:us .

<http://hl7.org/fhir/us/quality-core/Encounter/example> a fhir:us .

<http://hl7.org/fhir/us/quality-core/Practitioner/example> a fhir:us .

<http://hl7.org/fhir/us/quality-core/DiagnosticReport/example> a fhir:us .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/us/quality-core/Procedure/example.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl ;
  owl:versionIRI <http://build.fhir.org/us/quality-core/Procedure/example.ttl> .

# -------------------------------------------------------------------------------------

