{
  "resourceType": "StructureDefinition",
  "id": "MyDiagnosticReportmcdtresultssync",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-08-14T17:37:52.467+00:00"
  },
  "url": "https://spms.min-saude.pt/fhir/StructureDefinition/MyDiagnosticReport_mcdt_results_sync",
  "name": "MyDiagnosticReport_mcdt_results_sync",
  "status": "draft",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "DiagnosticReport",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport.id",
        "path": "DiagnosticReport.id",
        "min": 1
      },
      {
        "id": "DiagnosticReport.meta",
        "path": "DiagnosticReport.meta",
        "min": 1
      },
      {
        "id": "DiagnosticReport.meta.security",
        "path": "DiagnosticReport.meta.security",
        "min": 1
      },
      {
        "id": "DiagnosticReport.meta.security.system",
        "path": "DiagnosticReport.meta.security.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/v3/Confidentiality"
      },
      {
        "id": "DiagnosticReport.meta.security.code",
        "path": "DiagnosticReport.meta.security.code",
        "min": 1
      },
      {
        "id": "DiagnosticReport.meta.security.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "DiagnosticReport.meta.security.display",
        "min": 1
      },
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest",
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.basedOn.identifier",
        "path": "DiagnosticReport.basedOn.identifier",
        "min": 1
      },
      {
        "id": "DiagnosticReport.basedOn.identifier.system",
        "path": "DiagnosticReport.basedOn.identifier.system",
        "min": 1
      },
      {
        "id": "DiagnosticReport.basedOn.identifier.value",
        "path": "DiagnosticReport.basedOn.identifier.value",
        "min": 1
      },
      {
        "id": "DiagnosticReport.category",
        "path": "DiagnosticReport.category",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "coding.system"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "DiagnosticReport.category:sliceCategory_ACSS",
        "path": "DiagnosticReport.category",
        "sliceName": "sliceCategory_ACSS"
      },
      {
        "id": "DiagnosticReport.category:sliceCategory_ACSS.coding.system",
        "path": "DiagnosticReport.category.coding.system",
        "min": 1,
        "fixedUri": "http://www.acss.min-saude.pt/mcdt/valueset/clinical-areas"
      },
      {
        "id": "DiagnosticReport.category:sliceCategory_ACSS.coding.code",
        "path": "DiagnosticReport.category.coding.code",
        "min": 1
      },
      {
        "id": "DiagnosticReport.category:sliceCategory_ACSS.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "DiagnosticReport.category.coding.display",
        "min": 1
      },
      {
        "id": "DiagnosticReport.category:sliceCategory_Cod_FHIR",
        "path": "DiagnosticReport.category",
        "sliceName": "sliceCategory_Cod_FHIR"
      },
      {
        "id": "DiagnosticReport.category:sliceCategory_Cod_FHIR.coding.system",
        "path": "DiagnosticReport.category.coding.system",
        "min": 1,
        "fixedUri": "http://hl7.org/fhir/v2/0074"
      },
      {
        "id": "DiagnosticReport.category:sliceCategory_Cod_FHIR.coding.code",
        "path": "DiagnosticReport.category.coding.code",
        "min": 1
      },
      {
        "id": "DiagnosticReport.category:sliceCategory_Cod_FHIR.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "DiagnosticReport.category.coding.display",
        "min": 1
      },
      {
        "id": "DiagnosticReport.code",
        "path": "DiagnosticReport.code",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "coding.system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "DiagnosticReport.code:sliceCode_LOINC",
        "path": "DiagnosticReport.code",
        "sliceName": "sliceCode_LOINC"
      },
      {
        "id": "DiagnosticReport.code:sliceCode_LOINC.coding.system",
        "path": "DiagnosticReport.code.coding.system",
        "min": 1,
        "fixedUri": "http://loinc.org"
      },
      {
        "id": "DiagnosticReport.code:sliceCode_LOINC.coding.code",
        "path": "DiagnosticReport.code.coding.code",
        "min": 1
      },
      {
        "id": "DiagnosticReport.code:sliceCode_LOINC.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "DiagnosticReport.code.coding.display",
        "min": 1
      },
      {
        "id": "DiagnosticReport.code:sliceCode_ACSS",
        "path": "DiagnosticReport.code",
        "sliceName": "sliceCode_ACSS"
      },
      {
        "id": "DiagnosticReport.code:sliceCode_ACSS.coding.system",
        "path": "DiagnosticReport.code.coding.system",
        "min": 1,
        "fixedUri": "ttp://www.acss.min-saude.pt/mcdt/valueset/report-types"
      },
      {
        "id": "DiagnosticReport.code:sliceCode_ACSS.coding.code",
        "path": "DiagnosticReport.code.coding.code",
        "min": 1
      },
      {
        "id": "DiagnosticReport.code:sliceCode_ACSS.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "DiagnosticReport.code.coding.display",
        "min": 1
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://spms.min-saude.pt/fhir/StructureDefinition/MyPatient_mcdt_results_sync",
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.issued",
        "path": "DiagnosticReport.issued",
        "min": 1
      },
      {
        "id": "DiagnosticReport.performer",
        "path": "DiagnosticReport.performer",
        "min": 1
      },
      {
        "id": "DiagnosticReport.performer.actor",
        "path": "DiagnosticReport.performer.actor",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://spms.min-saude.pt/fhir/StructureDefinition/MyPractitioner_mcdt_results_sync",
            "aggregation": [
              "referenced",
              "bundled"
            ]
          },
          {
            "code": "Reference",
            "targetProfile": "http://spms.min-saude.pt//fhir/StructureDefinition/MyOrganization_mcdt_results_sync",
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.specimen",
        "path": "DiagnosticReport.specimen",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://spms.min-saude.pt/fhir/StructureDefinition/MySpecimen_mcdt_results_sync",
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.result",
        "path": "DiagnosticReport.result",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "https://spms.min-saude.pt/fhir/StructureDefinition/MyObservation_mcdt_results_sync",
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.result.reference",
        "path": "DiagnosticReport.result.reference",
        "min": 1
      },
      {
        "id": "DiagnosticReport.imagingStudy",
        "path": "DiagnosticReport.imagingStudy",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://spms.min-saude.pt/fhir/StructureDefinition/MyImagingStudy_mcdt_results_sync",
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.image.link",
        "path": "DiagnosticReport.image.link",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://spms.min-saude.pt/fhir/StructureDefinition/MyMedia_mcdt_results_sync",
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.conclusion",
        "path": "DiagnosticReport.conclusion",
        "min": 1
      },
      {
        "id": "DiagnosticReport.presentedForm",
        "path": "DiagnosticReport.presentedForm",
        "max": "1"
      }
    ]
  }
}