<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://fhir.synapxe.sg/StructureDefinition/profile-cr-diagnosticreport" />
  <name value="DiagnosticReport" />
  <status value="active" />
  <fhirVersion value="5.0.0" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="DiagnosticReport" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DiagnosticReport" />
  <derivation value="constraint" />
  <differential>
    <element id="DiagnosticReport.modifierExtension">
      <path value="DiagnosticReport.modifierExtension" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.identifier">
      <path value="DiagnosticReport.identifier" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Identifier" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-identifier" />
      </type>
    </element>
    <element id="DiagnosticReport.identifier.system">
      <path value="DiagnosticReport.identifier.system" />
      <fixedUri value="https://fhir.synapxe.sg/NamingSystem/sequence-no" />
    </element>
    <element id="DiagnosticReport.basedOn">
      <path value="DiagnosticReport.basedOn" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.category">
      <path value="DiagnosticReport.category" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
      <binding>
        <strength value="required" />
      </binding>
    </element>
    <element id="DiagnosticReport.category.extension">
      <path value="DiagnosticReport.category.extension" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.category.coding.system">
      <path value="DiagnosticReport.category.coding.system" />
      <fixedUri value="http://terminology.hl7.org/CodeSystem/v2-0074" />
    </element>
    <element id="DiagnosticReport.category.coding.version">
      <path value="DiagnosticReport.category.coding.version" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.category.coding.code">
      <path value="DiagnosticReport.category.coding.code" />
      <patternCode value="LAB" />
    </element>
    <element id="DiagnosticReport.code">
      <path value="DiagnosticReport.code" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
    </element>
    <element id="DiagnosticReport.code.extension">
      <path value="DiagnosticReport.code.extension" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.code.coding.version">
      <path value="DiagnosticReport.code.coding.version" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.subject">
      <path value="DiagnosticReport.subject" />
      <max value="0" />
      <type>
        <code value="Reference" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-reference-patient" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-patient" />
      </type>
    </element>
    <element id="DiagnosticReport.encounter">
      <path value="DiagnosticReport.encounter" />
      <max value="0" />
      <type>
        <code value="Reference" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-reference-encounter" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-encounter" />
      </type>
    </element>
    <element id="DiagnosticReport.effective[x]">
      <path value="DiagnosticReport.effective[x]" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.performer">
      <path value="DiagnosticReport.performer" />
      <short value="A reference from one resource to another" />
      <definition value="A reference from one resource to another." />
      <comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolvable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository." />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-practitionerrole" />
        <aggregation value="bundled" />
      </type>
    </element>
    <element id="DiagnosticReport.resultsInterpreter">
      <path value="DiagnosticReport.resultsInterpreter" />
      <max value="0" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-practitioner" />
      </type>
    </element>
    <element id="DiagnosticReport.resultsInterpreter.id">
      <path value="DiagnosticReport.resultsInterpreter.id" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.resultsInterpreter.extension">
      <path value="DiagnosticReport.resultsInterpreter.extension" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.resultsInterpreter.reference">
      <path value="DiagnosticReport.resultsInterpreter.reference" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.resultsInterpreter.type">
      <path value="DiagnosticReport.resultsInterpreter.type" />
      <fixedUri value="Practitioner" />
    </element>
    <element id="DiagnosticReport.resultsInterpreter.identifier">
      <path value="DiagnosticReport.resultsInterpreter.identifier" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.resultsInterpreter.identifier.id">
      <path value="DiagnosticReport.resultsInterpreter.identifier.id" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.resultsInterpreter.identifier.extension">
      <path value="DiagnosticReport.resultsInterpreter.identifier.extension" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.resultsInterpreter.identifier.use">
      <path value="DiagnosticReport.resultsInterpreter.identifier.use" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.resultsInterpreter.identifier.type">
      <path value="DiagnosticReport.resultsInterpreter.identifier.type" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.resultsInterpreter.identifier.system">
      <path value="DiagnosticReport.resultsInterpreter.identifier.system" />
      <min value="1" />
      <fixedUri value="https://fhir.synapxe.sg/NamingSystem/mcr" />
    </element>
    <element id="DiagnosticReport.resultsInterpreter.identifier.value">
      <path value="DiagnosticReport.resultsInterpreter.identifier.value" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.resultsInterpreter.identifier.period">
      <path value="DiagnosticReport.resultsInterpreter.identifier.period" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.resultsInterpreter.identifier.assigner">
      <path value="DiagnosticReport.resultsInterpreter.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.resultsInterpreter.display">
      <path value="DiagnosticReport.resultsInterpreter.display" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.specimen">
      <path value="DiagnosticReport.specimen" />
      <max value="0" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-specimen" />
      </type>
    </element>
    <element id="DiagnosticReport.result">
      <path value="DiagnosticReport.result" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-cr-observation" />
        <aggregation value="bundled" />
      </type>
    </element>
    <element id="DiagnosticReport.result.reference">
      <path value="DiagnosticReport.result.reference" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.note">
      <path value="DiagnosticReport.note" />
      <max value="0" />
      <type>
        <code value="Annotation" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-annotation" />
      </type>
    </element>
    <element id="DiagnosticReport.study">
      <path value="DiagnosticReport.study" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.supportingInfo">
      <path value="DiagnosticReport.supportingInfo" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.supportingInfo.id">
      <path value="DiagnosticReport.supportingInfo.id" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.supportingInfo.extension">
      <path value="DiagnosticReport.supportingInfo.extension" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.supportingInfo.modifierExtension">
      <path value="DiagnosticReport.supportingInfo.modifierExtension" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.supportingInfo.type.id">
      <path value="DiagnosticReport.supportingInfo.type.id" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.supportingInfo.type.extension">
      <path value="DiagnosticReport.supportingInfo.type.extension" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.supportingInfo.type.coding">
      <path value="DiagnosticReport.supportingInfo.type.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="DiagnosticReport.supportingInfo.type.coding.id">
      <path value="DiagnosticReport.supportingInfo.type.coding.id" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.supportingInfo.type.coding.extension">
      <path value="DiagnosticReport.supportingInfo.type.coding.extension" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.supportingInfo.type.coding.system">
      <path value="DiagnosticReport.supportingInfo.type.coding.system" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.supportingInfo.type.coding.code">
      <path value="DiagnosticReport.supportingInfo.type.coding.code" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.supportingInfo.type.coding.display">
      <path value="DiagnosticReport.supportingInfo.type.coding.display" />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.supportingInfo.type.coding.userSelected">
      <path value="DiagnosticReport.supportingInfo.type.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.supportingInfo.type.text">
      <path value="DiagnosticReport.supportingInfo.type.text" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.supportingInfo.reference">
      <path value="DiagnosticReport.supportingInfo.reference" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-specimen" />
      </type>
    </element>
    <element id="DiagnosticReport.media">
      <path value="DiagnosticReport.media" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.media.id">
      <path value="DiagnosticReport.media.id" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.media.extension">
      <path value="DiagnosticReport.media.extension" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.media.modifierExtension">
      <path value="DiagnosticReport.media.modifierExtension" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.media.comment">
      <path value="DiagnosticReport.media.comment" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.media.link">
      <path value="DiagnosticReport.media.link" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.synapxe.sg/StructureDefinition/profile-documentreference" />
      </type>
    </element>
    <element id="DiagnosticReport.composition">
      <path value="DiagnosticReport.composition" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.conclusionCode">
      <path value="DiagnosticReport.conclusionCode" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
      <binding>
        <strength value="required" />
        <valueSet value="https://fhir.synapxe.sg/ValueSet/abnormal-flag" />
      </binding>
    </element>
    <element id="DiagnosticReport.conclusionCode.extension">
      <path value="DiagnosticReport.conclusionCode.extension" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.conclusionCode.coding.system">
      <path value="DiagnosticReport.conclusionCode.coding.system" />
      <fixedUri value="https://fhir.synapxe.sg/CodeSystem/abnormal-flag" />
    </element>
    <element id="DiagnosticReport.conclusionCode.coding.version">
      <path value="DiagnosticReport.conclusionCode.coding.version" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.presentedForm">
      <path value="DiagnosticReport.presentedForm" />
      <type>
        <code value="Attachment" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-attachment" />
      </type>
    </element>
  </differential>
</StructureDefinition>