{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2018-10-25T13:37:50.137+00:00"
  },
  "url": "http://apiframework.dedalus.eu/fhir/StructureDefinition/DiagnosticReport",
  "name": "DiagnosticReport",
  "title": "API Framework Diagnostic Report",
  "status": "active",
  "experimental": false,
  "date": "2018-10-25T13:37:49.9132595+00:00",
  "description": "API Framework Core Profile for Diagnostic Report",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "DiagnosticReport",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport.id",
        "path": "DiagnosticReport.id",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.meta",
        "path": "DiagnosticReport.meta",
        "type": [
          {
            "code": "Meta",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Meta-ForCommonConformance"
          }
        ]
      },
      {
        "id": "DiagnosticReport.text",
        "path": "DiagnosticReport.text",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.extension",
        "path": "DiagnosticReport.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "DiagnosticReport.extension:attachedDocument",
        "path": "DiagnosticReport.extension",
        "sliceName": "attachedDocument",
        "type": [
          {
            "code": "Extension",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/extension-diagnosticReport-attachedDocument"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.extension:attachedDocument.valueAttachment:valueAttachment.extension:documentReferenceMasterIdentifier",
        "path": "DiagnosticReport.extension.valueAttachment.extension",
        "sliceName": "documentReferenceMasterIdentifier",
        "min": 1
      },
      {
        "id": "DiagnosticReport.extension:businessStatus",
        "path": "DiagnosticReport.extension",
        "sliceName": "businessStatus",
        "definition": "Contains business-specific nuances of the business state.",
        "requirements": "There's often a need to track substates of a diagnsotic report - this is often variable by specific workflow implementation. The businessStatus shall be coherent with the status element, providing additional information over that status.",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/extension-resource-businessStatus"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.identifier",
        "path": "DiagnosticReport.identifier",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/CarePlan"
          },
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/MedicationRequest"
          },
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/ProcedureRequest"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.status",
        "path": "DiagnosticReport.status",
        "definition": "The status of the diagnostic report as a whole (considering the Status of the referenced Observation(s))",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.category",
        "path": "DiagnosticReport.category",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.code",
        "path": "DiagnosticReport.code",
        "definition": "WARNING!.\r\nA code or name that describes this diagnostic report. Review it with different CodeSystem (not LOINC) for more high level definitions and scenarios coverage. (see tech page)",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://apiframework.dedalus.eu/fhir/ValueSet/AffinityDomainFormatCodes"
          }
        }
      },
      {
        "id": "DiagnosticReport.code.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "DiagnosticReport.code.text",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Patient",
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.context",
        "path": "DiagnosticReport.context",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Encounter",
            "aggregation": [
              "referenced"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/EpisodeOfCare",
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.issued",
        "path": "DiagnosticReport.issued",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.performer",
        "path": "DiagnosticReport.performer",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.performer.role",
        "path": "DiagnosticReport.performer.role",
        "mustSupport": true,
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://apiframework.dedalus.eu/fhir/ValueSet/DiagnosticReportPerformerRoles"
          }
        }
      },
      {
        "id": "DiagnosticReport.performer.actor",
        "path": "DiagnosticReport.performer.actor",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Practitioner"
          },
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Organization"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.specimen",
        "path": "DiagnosticReport.specimen",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Specimen"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.result",
        "path": "DiagnosticReport.result",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Observation"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.imagingStudy",
        "path": "DiagnosticReport.imagingStudy",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/ImagingStudy"
          },
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ImagingManifest"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.image",
        "path": "DiagnosticReport.image",
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.image.link",
        "path": "DiagnosticReport.image.link",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Media"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.presentedForm",
        "path": "DiagnosticReport.presentedForm",
        "type": [
          {
            "code": "Attachment",
            "profile": "http://apiframework.dedalus.eu/fhir/StructureDefinition/Attachment"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "DiagnosticReport.presentedForm.extension:documentReferenceMasterIdentifier",
        "path": "DiagnosticReport.presentedForm.extension",
        "sliceName": "documentReferenceMasterIdentifier",
        "requirements": "Extension hosting document master itendifier information for attachments. This extension is meant to contain the same information in DocumentReference.masterIdentifier, it is used to provide redundant data into the linked Diagnosticreport instance for performance reasons.",
        "min": 1
      },
      {
        "id": "DiagnosticReport.presentedForm.extension:documentReferenceContentFormat",
        "path": "DiagnosticReport.presentedForm.extension",
        "sliceName": "documentReferenceContentFormat",
        "requirements": "Extension hosting format code information for attachments. This extension is meant to contain the same information in DocumentReference.content.format, it is used to provide redundant data into the linked Diagnosticreport instance for performance reasons.",
        "binding": {
          "strength": "required",
          "description": "Same as .code Element",
          "valueSetUri": "http://apiframework.dedalus.eu/fhir/ValueSet/AffinityDomainFormatCodes"
        }
      },
      {
        "id": "DiagnosticReport.presentedForm.contentType",
        "path": "DiagnosticReport.presentedForm.contentType",
        "binding": {
          "strength": "required",
          "valueSetUri": "http://apiframework.dedalus.eu/fhir/ValueSet/AffinityDomainimeTypes"
        }
      }
    ]
  }
}