{
  "resourceType": "StructureDefinition",
  "id": "DRComposition",
  "meta": {
    "lastUpdated": "2021-03-23T09:50:20.253+00:00"
  },
  "url": "http://dedalus-group.com/fhir/StructureDefinition/DRComposition",
  "name": "DRComposition",
  "status": "draft",
  "date": "2021-03-23T09:45:52.1893276+00:00",
  "description": "Composition for Diagnostic Report",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "cda",
      "uri": "http://hl7.org/v3/cda",
      "name": "CDA (R2)"
    },
    {
      "identity": "fhirdocumentreference",
      "uri": "http://hl7.org/fhir/documentreference",
      "name": "FHIR DocumentReference"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Composition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Composition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Composition.implicitRules",
        "path": "Composition.implicitRules",
        "max": "0"
      },
      {
        "id": "Composition.language",
        "path": "Composition.language",
        "max": "0"
      },
      {
        "id": "Composition.text",
        "path": "Composition.text",
        "min": 1
      },
      {
        "id": "Composition.identifier",
        "path": "Composition.identifier",
        "max": "0"
      },
      {
        "id": "Composition.type",
        "path": "Composition.type",
        "fixedCodeableConcept": {
          "text": "Diagnostic imaging study"
        }
      },
      {
        "id": "Composition.type.id",
        "path": "Composition.type.id",
        "max": "0"
      },
      {
        "id": "Composition.type.text",
        "path": "Composition.type.text",
        "min": 1
      },
      {
        "id": "Composition.category",
        "path": "Composition.category",
        "max": "0"
      },
      {
        "id": "Composition.subject",
        "path": "Composition.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource",
              "http://dedalus-group.com/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "Composition.encounter",
        "path": "Composition.encounter",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://dedalus-group.com/fhir/StructureDefinition/Encounter"
            ]
          }
        ]
      },
      {
        "id": "Composition.author",
        "path": "Composition.author",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://dedalus-group.com/fhir/StructureDefinition/Practitioner",
              "http://dedalus-group.com/fhir/StructureDefinition/Organization"
            ]
          }
        ]
      },
      {
        "id": "Composition.author.id",
        "path": "Composition.author.id",
        "max": "0"
      },
      {
        "id": "Composition.author.reference",
        "path": "Composition.author.reference",
        "min": 1
      },
      {
        "id": "Composition.author.type",
        "path": "Composition.author.type",
        "max": "0"
      },
      {
        "id": "Composition.author.identifier",
        "path": "Composition.author.identifier",
        "max": "0"
      },
      {
        "id": "Composition.confidentiality",
        "path": "Composition.confidentiality",
        "max": "0"
      },
      {
        "id": "Composition.attester",
        "path": "Composition.attester",
        "min": 1
      },
      {
        "id": "Composition.attester.party",
        "path": "Composition.attester.party",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://dedalus-group.com/fhir/StructureDefinition/Practitioner"
            ]
          }
        ]
      },
      {
        "id": "Composition.attester.party.id",
        "path": "Composition.attester.party.id",
        "max": "0"
      },
      {
        "id": "Composition.attester.party.reference",
        "path": "Composition.attester.party.reference",
        "min": 1
      },
      {
        "id": "Composition.attester.party.type",
        "path": "Composition.attester.party.type",
        "max": "0"
      },
      {
        "id": "Composition.attester.party.identifier",
        "path": "Composition.attester.party.identifier",
        "max": "0"
      },
      {
        "id": "Composition.relatesTo",
        "path": "Composition.relatesTo",
        "comment": "appends: Expresses that a report is an addendum to an existing predecessor report (Nachtragsbefund)\r\n\r\nreplaces: Expresses that a report is an replacement of an existing predecessor report (Korrekturbefund)"
      },
      {
        "id": "Composition.event",
        "path": "Composition.event",
        "max": "0"
      },
      {
        "id": "Composition.section.id",
        "path": "Composition.section.id",
        "max": "0"
      },
      {
        "id": "Composition.section.title",
        "path": "Composition.section.title",
        "definition": "Label from the UI",
        "min": 1
      },
      {
        "id": "Composition.section.code",
        "path": "Composition.section.code",
        "max": "0"
      },
      {
        "id": "Composition.section.author",
        "path": "Composition.section.author",
        "max": "0"
      },
      {
        "id": "Composition.section.focus",
        "path": "Composition.section.focus",
        "max": "0"
      },
      {
        "id": "Composition.section.text",
        "path": "Composition.section.text",
        "comment": "Test from the UI",
        "min": 1
      },
      {
        "id": "Composition.section.mode",
        "path": "Composition.section.mode",
        "max": "0"
      },
      {
        "id": "Composition.section.orderedBy",
        "path": "Composition.section.orderedBy",
        "definition": "The section list should preserve the ordering from the UI"
      },
      {
        "id": "Composition.section.entry",
        "path": "Composition.section.entry",
        "definition": "Measurements: In case measurements are associated with the section, the entry references Observation resources (representing the measurements) accordingly.\r\n\r\nKey Images: In case key images are associated with the section, the entry references Media resources (representing the key images) accordingly.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource",
              "http://dedalus-group.com/fhir/StructureDefinition/Media",
              "http://dedalus-group.com/fhir/StructureDefinition/Observation"
            ]
          }
        ]
      },
      {
        "id": "Composition.section.entry.id",
        "path": "Composition.section.entry.id",
        "max": "0"
      },
      {
        "id": "Composition.section.entry.type",
        "path": "Composition.section.entry.type",
        "max": "0"
      },
      {
        "id": "Composition.section.entry.identifier",
        "path": "Composition.section.entry.identifier",
        "max": "0"
      },
      {
        "id": "Composition.section.emptyReason",
        "path": "Composition.section.emptyReason",
        "definition": "to be filled if a section is empty and should be rendered in the PDF"
      },
      {
        "id": "Composition.section.section",
        "path": "Composition.section.section",
        "max": "0"
      }
    ]
  }
}