<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="profile-cr-diagnosticreport" />
  <url value="https://fhir.synapxe.sg/StructureDefinition/profile-cr-diagnosticreport" />
  <name value="DiagnosticReport" />
  <title value="Cardiology Diagnostic Report Profile" />
  <status value="active" />
  <publisher value="Synapxe" />
  <description value="Diagnostic report profile for cardiology-related clinical findings and test results, including ECG, echocardiogram, and other cardiac diagnostic procedures." />
  <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">
      <path value="DiagnosticReport" />
      <definition value="Findings and interpretations of tests performed on the patient." />
    </element>
    <element id="DiagnosticReport.modifierExtension">
      <path value="DiagnosticReport.modifierExtension" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.identifier">
      <path value="DiagnosticReport.identifier" />
      <definition value="Sequence number assigned to the report within a procedure." />
      <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" />
      <patternUri value="https://fhir.synapxe.sg/NamingSystem/sequence-no" />
    </element>
    <element id="DiagnosticReport.basedOn">
      <path value="DiagnosticReport.basedOn" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.status">
      <path value="DiagnosticReport.status" />
      <definition value="Information related to the status of the report." />
    </element>
    <element id="DiagnosticReport.category">
      <path value="DiagnosticReport.category" />
      <definition value="Category of the report." />
      <min value="1" />
      <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/report-category" />
      </binding>
    </element>
    <element id="DiagnosticReport.category.extension">
      <path value="DiagnosticReport.category.extension" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.category.coding.version">
      <path value="DiagnosticReport.category.coding.version" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.code">
      <path value="DiagnosticReport.code" />
      <definition value="Name of the report." />
      <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/report-code" />
      </binding>
    </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]" />
      <definition value="Carries these NEHR XML elements of putCardiology:&#xA;&#xA;- `content/Composition/section/entry/Procedure/report/effective/effectiveDateTime`: Effective date and time.&#xA;- `content/Composition/section/entry/Procedure/report/effective/effectivePeriod/start`: Start of effective period.&#xA;- `content/Composition/section/entry/Procedure/report/effective/effectivePeriod/end`: End of effective period." />
      <min value="1" />
    </element>
    <element id="DiagnosticReport.issued">
      <path value="DiagnosticReport.issued" />
      <definition value="Date and time this version of the report was released." />
    </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" />
      <patternUri value="Practitioner" />
    </element>
    <element id="DiagnosticReport.resultsInterpreter.identifier">
      <path value="DiagnosticReport.resultsInterpreter.identifier" />
      <min value="1" />
      <type>
        <code value="Identifier" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-identifier-mcr" />
      </type>
    </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="1" />
      <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="1" />
    </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.media.link.identifier">
      <path value="DiagnosticReport.media.link.identifier" />
      <definition value="Unique identifier for the image." />
    </element>
    <element id="DiagnosticReport.composition">
      <path value="DiagnosticReport.composition" />
      <max value="0" />
    </element>
    <element id="DiagnosticReport.conclusion">
      <path value="DiagnosticReport.conclusion" />
      <definition value="Concise and clinically contextualized narrative interpretation of the report." />
    </element>
    <element id="DiagnosticReport.conclusionCode">
      <path value="DiagnosticReport.conclusionCode" />
      <definition value="Final diagnosis associated with the report (report/codedDiagnosis), followed by the final diagnosis of the procedure the report belongs to (Procedure/finalDiagnosis)." />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-codeableconcept" />
      </type>
    </element>
    <element id="DiagnosticReport.conclusionCode.extension">
      <path value="DiagnosticReport.conclusionCode.extension" />
      <max value="0" />
    </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" />
      <definition value="Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they shall be semantically equivalent." />
      <type>
        <code value="Attachment" />
        <profile value="https://fhir.synapxe.sg/StructureDefinition/profile-attachment" />
      </type>
    </element>
    <element id="DiagnosticReport.presentedForm.contentType">
      <path value="DiagnosticReport.presentedForm.contentType" />
      <definition value="Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes MIME type parameters such as charset where appropriate." />
    </element>
    <element id="DiagnosticReport.presentedForm.language">
      <path value="DiagnosticReport.presentedForm.language" />
      <definition value="The human language of the content. The value can be any valid value according to BCP 47." />
    </element>
    <element id="DiagnosticReport.presentedForm.data">
      <path value="DiagnosticReport.presentedForm.data" />
      <definition value="The actual data of the attachment represented as a sequence of bytes. In XML, represented using base64 encoding." />
    </element>
    <element id="DiagnosticReport.presentedForm.size">
      <path value="DiagnosticReport.presentedForm.size" />
      <definition value="The number of bytes of data that make up this attachment." />
    </element>
    <element id="DiagnosticReport.presentedForm.title">
      <path value="DiagnosticReport.presentedForm.title" />
      <definition value="A label or set of text to display in place of the data." />
    </element>
  </differential>
</StructureDefinition>