{
  "resourceType": "StructureDefinition",
  "id": "EviPrevDiagnosticReport",
  "meta": {
    "lastUpdated": "2018-03-28T13:23:44.83+00:00"
  },
  "url": "https://cdss.eviprev.ch/fhir/StructureDefinition/DiagnosticReport",
  "version": "1.1",
  "name": "eviprevDiagnosticReport",
  "title": "EviPrev Diagnostic Report",
  "status": "draft",
  "date": "2018-03-28T06:28:09.019+00:00",
  "publisher": "Arpage AG",
  "contact": [
    {
      "name": "Patrick Husi",
      "telecom": [
        {
          "system": "email",
          "value": "patrick.husi@arpage.ch"
        }
      ]
    }
  ],
  "description": "Describes EviPrev CDSS diagnostics results",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "DiagnosticReport",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport.identifier",
        "path": "DiagnosticReport.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://cdss.eviprev.ch/fhir/StructureDefinition/ReferralRequest"
          }
        ]
      },
      {
        "id": "DiagnosticReport.status",
        "path": "DiagnosticReport.status",
        "fixedCode": "final"
      },
      {
        "id": "DiagnosticReport.category",
        "path": "DiagnosticReport.category",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.code.coding",
        "path": "DiagnosticReport.code.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "DiagnosticReport.code.coding.system",
        "path": "DiagnosticReport.code.coding.system",
        "min": 1,
        "fixedUri": "https://cdss.eviprev.ch/fhir/CodeSystem/cdss-rule-definition"
      },
      {
        "id": "DiagnosticReport.code.coding.version",
        "path": "DiagnosticReport.code.coding.version",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.code.coding.code",
        "path": "DiagnosticReport.code.coding.code",
        "min": 1
      },
      {
        "id": "DiagnosticReport.code.coding.userSelected",
        "path": "DiagnosticReport.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.code.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "DiagnosticReport.code.text",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://cdss.eviprev.ch/fhir/StructureDefinition/Patient",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "subject.reference",
        "path": "DiagnosticReport.subject.reference",
        "min": 1
      },
      {
        "id": "subject.identifier",
        "path": "DiagnosticReport.subject.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.context",
        "path": "DiagnosticReport.context",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.effective[x]:effectiveDateTime",
        "path": "DiagnosticReport.effectiveDateTime",
        "sliceName": "effectiveDateTime",
        "min": 1,
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "DiagnosticReport.issued",
        "path": "DiagnosticReport.issued",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.performer",
        "path": "DiagnosticReport.performer",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.specimen",
        "path": "DiagnosticReport.specimen",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.result",
        "path": "DiagnosticReport.result",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://cdss.eviprev.ch/fhir/StructureDefinition/Observation",
            "aggregation": [
              "contained"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.result.reference",
        "path": "DiagnosticReport.result.reference",
        "min": 1
      },
      {
        "id": "DiagnosticReport.result.identifier",
        "path": "DiagnosticReport.result.identifier",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.imagingStudy",
        "path": "DiagnosticReport.imagingStudy",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.image",
        "path": "DiagnosticReport.image",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.conclusion",
        "path": "DiagnosticReport.conclusion",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.codedDiagnosis",
        "path": "DiagnosticReport.codedDiagnosis",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.presentedForm",
        "path": "DiagnosticReport.presentedForm",
        "max": "0"
      }
    ]
  }
}