<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://203.64.84.150:58443/r5/fhir/StructureDefinition/ImageAnnotationObservation" />
  <name value="ImageAnnotation" />
  <title value="ImageAnnotation" />
  <status value="draft" />
  <date value="2023-03-24T02:49:05.702301+00:00" />
  <description value="The standard specification for storing image annotation" />
  <purpose value="The standard specification for storing image annotation" />
  <fhirVersion value="5.0.0-snapshot1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Observation" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation" />
  <derivation value="constraint" />
  <differential>
    <element id="Observation.status">
      <path value="Observation.status" />
      <binding>
        <strength value="required" />
        <description value="Codes providing the status of an observation annotation." />
        <valueSet value="http://hl7.org/fhir/ValueSet/observation-status|5.0.0-cibuild" />
      </binding>
    </element>
    <element id="Observation.category">
      <path value="Observation.category" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Observation.category:imaging-category">
      <path value="Observation.category" />
      <sliceName value="imaging-category" />
      <min value="1" />
      <max value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="http://terminology.hl7.org/CodeSystem/observation-category" />
          <code value="imaging" />
        </coding>
      </patternCodeableConcept>
    </element>
    <element id="Observation.code.coding.system">
      <path value="Observation.code.coding.system" />
      <fixedUri value="https://203.64.84.150:58443/r5/fhir/CodeSystem/8f414151-bf5f-46ce-94fe-f96d9e867d29" />
    </element>
    <element id="Observation.code.coding.code">
      <path value="Observation.code.coding.code" />
      <fixedCode value="image.annotation" />
    </element>
    <element id="Observation.subject">
      <path value="Observation.subject" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
    </element>
    <element id="Observation.effective[x]">
      <path value="Observation.effective[x]" />
      <min value="1" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="Observation.performer">
      <path value="Observation.performer" />
      <short value="Who is responsible for the observation annotation" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
      </type>
    </element>
    <element id="Observation.derivedFrom">
      <path value="Observation.derivedFrom" />
      <short value="The single image being annotated" />
      <definition value="The target resource that represents a single image from which this observation value is derived. For example, a annotation measurement based on a chest X-ray image." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ImagingStudy" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Media" />
      </type>
    </element>
    <element id="Observation.component">
      <path value="Observation.component" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="code.coding.code" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Observation.component:svg-annotation">
      <path value="Observation.component" />
      <sliceName value="svg-annotation" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Observation.component:svg-annotation.code.coding.system">
      <path value="Observation.component.code.coding.system" />
      <fixedUri value="https://203.64.84.150:58443/r5/fhir/CodeSystem/8f414151-bf5f-46ce-94fe-f96d9e867d29" />
    </element>
    <element id="Observation.component:svg-annotation.code.coding.code">
      <path value="Observation.component.code.coding.code" />
      <fixedCode value="svg.annotation" />
    </element>
    <element id="Observation.component:svg-annotation.value[x]">
      <path value="Observation.component.value[x]" />
      <type>
        <code value="Attachment" />
      </type>
    </element>
    <element id="Observation.component:svg-annotation.value[x].contentType">
      <path value="Observation.component.value[x].contentType" />
      <min value="1" />
      <fixedCode value="image/svg+xml" />
    </element>
    <element id="Observation.component:svg-annotation.value[x].data">
      <path value="Observation.component.value[x].data" />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>