@prefix fhir: <http://hl7.org/fhir/> .
@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 sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<https://annotatemd.com/fhir/ig/Observation/ExampleAIPrediction> a fhir:Observation ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "ExampleAIPrediction"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "https://annotatemd.com/fhir/ig/StructureDefinition/ai-prediction"^^xsd:anyURI ;
       fhir:l <https://annotatemd.com/fhir/ig/StructureDefinition/ai-prediction>
     ] ) ;
     fhir:security ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/v3-ObservationValue"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/v3-ObservationValue>
       ] ;
       fhir:code [ fhir:v "AIAST" ] ;
       fhir:display [ fhir:v "artificial intelligence asserted" ]
     ] )
  ] ; # 
  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 ExampleAIPrediction</b></p><a name=\"ExampleAIPrediction\"> </a><a name=\"hcExampleAIPrediction\"> </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-ai-prediction.html\">AI Prediction</a></p><p style=\"margin-bottom: 0px\">Security Label: artificial intelligence asserted (Details: ObservationValue code AIAST = 'artificial intelligence asserted')</p></div><p><b>status</b>: Preliminary</p><p><b>category</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/observation-category imaging}\">Imaging</span>, <span title=\"Codes:{https://annotatemd.com/fhir/ig/CodeSystem/annotation-type dermatology-annotation}\">Dermatology Annotation</span></p><p><b>code</b>: <span title=\"Codes:{https://annotatemd.com/fhir/ig/CodeSystem/annotation-type lesion-classification}\">Lesion Classification</span></p><p><b>subject</b>: <a href=\"Patient-example-patient.html\">Jane Smith  Female, DoB: 1975-06-15</a></p><p><b>effective</b>: 2026-03-27 14:29:00+0000</p><p><b>method</b>: <span title=\"Codes:{https://annotatemd.com/fhir/ig/CodeSystem/annotation-method ai-inference}\">AI Model Inference</span></p><p><b>device</b>: <a href=\"Device-example-derm-ai-model.html\">Device: manufacturer = Annotate MD</a></p><p><b>derivedFrom</b>: <a href=\"DocumentReference-example-clinical-photo.html\">DocumentReference: status = current; type = Photographic image</a></p><blockquote><p><b>component</b></p><p><b>code</b>: <span title=\"Codes:{http://snomed.info/sct 106076001}\">Skin finding</span></p><p><b>value</b>: <span title=\"Codes:{http://snomed.info/sct 372244006}\">Malignant melanoma</span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: <span title=\"Codes:{https://annotatemd.com/fhir/ig/CodeSystem/annotation-type prediction-confidence}\">Prediction Confidence</span></p><p><b>value</b>: 0.89 score<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  code1 = '1')</span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: <span title=\"Codes:{https://annotatemd.com/fhir/ig/CodeSystem/annotation-type inference-time-ms}\">Inference Time</span></p><p><b>value</b>: 245 milliseconds<span style=\"background: LightGoldenRodYellow\"> (Details: UCUM  codems = 'ms')</span></p></blockquote></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:status [ fhir:v "preliminary"] ; # 
  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 "imaging" ]
     ] )
  ] [
     fhir:coding ( [
       fhir:system [
         fhir:v "https://annotatemd.com/fhir/ig/CodeSystem/annotation-type"^^xsd:anyURI ;
         fhir:l <https://annotatemd.com/fhir/ig/CodeSystem/annotation-type>
       ] ;
       fhir:code [ fhir:v "dermatology-annotation" ]
     ] )
  ] ) ; # 
  fhir:code [
     fhir:coding ( [
       fhir:system [
         fhir:v "https://annotatemd.com/fhir/ig/CodeSystem/annotation-type"^^xsd:anyURI ;
         fhir:l <https://annotatemd.com/fhir/ig/CodeSystem/annotation-type>
       ] ;
       fhir:code [ fhir:v "lesion-classification" ] ;
       fhir:display [ fhir:v "Lesion Classification" ]
     ] )
  ] ; # 
  fhir:subject [
     fhir:l <https://annotatemd.com/fhir/ig/Patient/example-patient> ;
     fhir:reference [ fhir:v "Patient/example-patient" ]
  ] ; # 
  fhir:effective [
     a fhir:DateTime ;
     fhir:v "2026-03-27T14:29:00Z"^^xsd:dateTime
  ] ; # 
  fhir:method [
     fhir:coding ( [
       fhir:system [
         fhir:v "https://annotatemd.com/fhir/ig/CodeSystem/annotation-method"^^xsd:anyURI ;
         fhir:l <https://annotatemd.com/fhir/ig/CodeSystem/annotation-method>
       ] ;
       fhir:code [ fhir:v "ai-inference" ] ;
       fhir:display [ fhir:v "AI Model Inference" ]
     ] )
  ] ; # 
  fhir:device [
     fhir:l <https://annotatemd.com/fhir/ig/Device/example-derm-ai-model> ;
     fhir:reference [ fhir:v "Device/example-derm-ai-model" ]
  ] ; # 
  fhir:derivedFrom ( [
     fhir:l <https://annotatemd.com/fhir/ig/DocumentReference/example-clinical-photo> ;
     fhir:reference [ fhir:v "DocumentReference/example-clinical-photo" ]
  ] ) ; # 
  fhir:component ( [
     fhir:code [
       fhir:coding ( [
         a sct:106076001 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "106076001" ] ;
         fhir:display [ fhir:v "Skin finding" ]
       ] )
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a sct:372244006 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "372244006" ] ;
         fhir:display [ fhir:v "Malignant melanoma" ]
       ] )
     ]
  ] [
     fhir:code [
       fhir:coding ( [
         fhir:system [
           fhir:v "https://annotatemd.com/fhir/ig/CodeSystem/annotation-type"^^xsd:anyURI ;
           fhir:l <https://annotatemd.com/fhir/ig/CodeSystem/annotation-type>
         ] ;
         fhir:code [ fhir:v "prediction-confidence" ]
       ] )
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v 0.89 ] ;
       fhir:unit [ fhir:v "score" ] ;
       fhir:system [
         fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
         fhir:l <http://unitsofmeasure.org>
       ] ;
       fhir:code [ fhir:v "1" ]
     ]
  ] [
     fhir:code [
       fhir:coding ( [
         fhir:system [
           fhir:v "https://annotatemd.com/fhir/ig/CodeSystem/annotation-type"^^xsd:anyURI ;
           fhir:l <https://annotatemd.com/fhir/ig/CodeSystem/annotation-type>
         ] ;
         fhir:code [ fhir:v "inference-time-ms" ]
       ] )
     ] ;
     fhir:value [
       a fhir:Quantity ;
       fhir:value [ fhir:v "245"^^xsd:decimal ] ;
       fhir:unit [ fhir:v "milliseconds" ] ;
       fhir:system [
         fhir:v "http://unitsofmeasure.org"^^xsd:anyURI ;
         fhir:l <http://unitsofmeasure.org>
       ] ;
       fhir:code [ fhir:v "ms" ]
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

