@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://hl7.eu/fhir/imaging/Composition/ImagingReportReplacementComposition> a fhir:Composition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "ImagingReportReplacementComposition"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.eu/fhir/imaging/StructureDefinition/CompositionEuImaging" ;
       fhir:index -1 ;
       fhir:link <http://hl7.eu/fhir/imaging/StructureDefinition/CompositionEuImaging>
     ]
  ] ;
  fhir:Resource.language [ fhir:value "en"] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xml:lang=\"en\" xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\"><p>Replacement imaging report.</p></div>"
  ] ;
  fhir:Composition.identifier [
     fhir:Identifier.system [ fhir:value "https://example.org/imaging-report-identifiers" ] ;
     fhir:Identifier.value [ fhir:value "report-replacement-example" ]
  ] ;
  fhir:Composition.status [ fhir:value "final"] ;
  fhir:Composition.type [
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       a loinc:18748-4 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "18748-4" ] ;
       fhir:Coding.display [ fhir:value "Diagnostic imaging study" ]
     ]
  ] ;
  fhir:Composition.category [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       a loinc:85430-7 ;
       fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
       fhir:Coding.code [ fhir:value "85430-7" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:CodeableConcept.coding [
       fhir:index -1 ;
       fhir:Coding.system [ fhir:value "http://hl7.eu/fhir/health-data-api/CodeSystem/eehrxf-document-priority-category-cs" ] ;
       fhir:Coding.code [ fhir:value "Medical-Imaging" ]
     ]
  ] ;
  fhir:Composition.subject [
     fhir:link <http://hl7.eu/fhir/imaging/Patient/PatientStructuredReport> ;
     fhir:Reference.reference [ fhir:value "Patient/PatientStructuredReport" ]
  ] ;
  fhir:Composition.date [ fhir:value "2026-07-27T10:00:00Z"^^xsd:dateTime] ;
  fhir:Composition.author [
     fhir:index -1 ;
     fhir:link <http://hl7.eu/fhir/imaging/Organization/OrganizationStructuredReport> ;
     fhir:Reference.reference [ fhir:value "Organization/OrganizationStructuredReport" ]
  ] ;
  fhir:Composition.title [ fhir:value "Replacement imaging report"] ;
  fhir:Composition.relatesTo [
     fhir:index -1 ;
     fhir:Composition.relatesTo.code [ fhir:value "replaces" ] ;
     fhir:Composition.relatesTo.targetIdentifier [
       fhir:Identifier.system [ fhir:value "https://example.org/imaging-document-identifiers" ] ;
       fhir:Identifier.value [ fhir:value "prior-document" ]
     ]
  ] ;
  fhir:Composition.section [
     fhir:index -1 ;
     fhir:Composition.section.code [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         a loinc:18726-0 ;
         fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
         fhir:Coding.code [ fhir:value "18726-0" ]
       ]
     ] ;
     fhir:Composition.section.text [
       fhir:Narrative.status [ fhir:value "generated" ] ;
       fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">Imaging study information</div>"
     ] ;
     fhir:Composition.section.entry [
       fhir:index -1 ;
       fhir:link <http://hl7.eu/fhir/imaging/ImagingStudy/ImagingStudyStructuredReport> ;
       fhir:Reference.reference [ fhir:value "ImagingStudy/ImagingStudyStructuredReport" ]
     ]
  ], [
     fhir:index -1 ;
     fhir:Composition.section.code [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         a loinc:55115-0 ;
         fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
         fhir:Coding.code [ fhir:value "55115-0" ]
       ]
     ] ;
     fhir:Composition.section.text [
       fhir:Narrative.status [ fhir:value "generated" ] ;
       fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">Order information</div>"
     ] ;
     fhir:Composition.section.emptyReason [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/list-empty-reason" ] ;
         fhir:Coding.code [ fhir:value "nilknown" ] ;
         fhir:Coding.display [ fhir:value "Nil Known" ]
       ]
     ]
  ], [
     fhir:index -1 ;
     fhir:Composition.section.code [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         a loinc:11329-0 ;
         fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
         fhir:Coding.code [ fhir:value "11329-0" ]
       ]
     ] ;
     fhir:Composition.section.text [
       fhir:Narrative.status [ fhir:value "generated" ] ;
       fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">History information</div>"
     ] ;
     fhir:Composition.section.emptyReason [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/list-empty-reason" ] ;
         fhir:Coding.code [ fhir:value "nilknown" ] ;
         fhir:Coding.display [ fhir:value "Nil Known" ]
       ]
     ]
  ], [
     fhir:index -1 ;
     fhir:Composition.section.code [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         a loinc:55111-9 ;
         fhir:Coding.system [ fhir:value "http://loinc.org" ] ;
         fhir:Coding.code [ fhir:value "55111-9" ]
       ]
     ] ;
     fhir:Composition.section.text [
       fhir:Narrative.status [ fhir:value "generated" ] ;
       fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">Procedure information</div>"
     ] ;
     fhir:Composition.section.emptyReason [
       fhir:CodeableConcept.coding [
         fhir:index -1 ;
         fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/list-empty-reason" ] ;
         fhir:Coding.code [ fhir:value "nilknown" ] ;
         fhir:Coding.display [ fhir:value "Nil Known" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.eu/fhir/imaging/Composition/ImagingReportReplacementComposition.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

