{
  "resourceType": "StructureDefinition",
  "id": "MyProcedureRequestMCDT",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-07-10T11:24:37.639+00:00"
  },
  "url": "http://spms.min-saude.pt/fhir/StructureDefinition/MyProcedureRequest_MCDT",
  "name": "MyProcedureRequest_MCDT",
  "status": "draft",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "ProcedureRequest",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "ProcedureRequest.id",
        "path": "ProcedureRequest.id",
        "min": 1
      },
      {
        "id": "ProcedureRequest.identifier",
        "path": "ProcedureRequest.identifier",
        "code": [
          {
            "system": "http://spms.min-saude.pt/sclinicoh/identifiers/mcdt-id"
          }
        ],
        "min": 1
      },
      {
        "id": "ProcedureRequest.requisition",
        "path": "ProcedureRequest.requisition",
        "code": [
          {
            "system": "https://spms.min-saude.pt/bdnr/identifiers/mcdt-request-id"
          }
        ],
        "min": 1
      },
      {
        "id": "ProcedureRequest.intent",
        "path": "ProcedureRequest.intent",
        "fixedCode": "order"
      },
      {
        "id": "ProcedureRequest.priority",
        "path": "ProcedureRequest.priority",
        "min": 1
      },
      {
        "id": "ProcedureRequest.category",
        "path": "ProcedureRequest.category",
        "min": 1
      },
      {
        "id": "ProcedureRequest.category.coding.system",
        "path": "ProcedureRequest.category.coding.system",
        "min": 1,
        "fixedUri": "http://snomed.info/sct"
      },
      {
        "id": "ProcedureRequest.category.coding.code",
        "path": "ProcedureRequest.category.coding.code",
        "min": 1
      },
      {
        "id": "ProcedureRequest.category.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "ProcedureRequest.category.coding.display",
        "min": 1
      },
      {
        "id": "ProcedureRequest.code.coding",
        "path": "ProcedureRequest.code.coding",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "ProcedureRequest.code.coding:sliceCodingACSS",
        "path": "ProcedureRequest.code.coding",
        "sliceName": "sliceCodingACSS"
      },
      {
        "id": "ProcedureRequest.code.coding:sliceCodingACSS.system",
        "path": "ProcedureRequest.code.coding.system",
        "fixedUri": "http://www.acss.min-saude.pt/2016/10/03/tabelas-meios-complementares-de-diagnostico-e-terapeutica/codigo-convencionado"
      },
      {
        "id": "ProcedureRequest.code.coding:sliceCodingSNS",
        "path": "ProcedureRequest.code.coding",
        "sliceName": "sliceCodingSNS"
      },
      {
        "id": "ProcedureRequest.code.coding:sliceCodingSNS.system",
        "path": "ProcedureRequest.code.coding.system",
        "fixedUri": "http://www.acss.min-saude.pt/2016/10/03/tabelas-meios-complementares-de-diagnostico-e-terapeutica/codigo-sns"
      },
      {
        "id": "ProcedureRequest.code.coding:sliceCodingLoinc",
        "path": "ProcedureRequest.code.coding",
        "sliceName": "sliceCodingLoinc"
      },
      {
        "id": "ProcedureRequest.code.coding:sliceCodingLoinc.system",
        "path": "ProcedureRequest.code.coding.system",
        "fixedUri": "https://loinc.org"
      },
      {
        "id": "ProcedureRequest.subject",
        "path": "ProcedureRequest.subject",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://spms.min-saude.pt/fhir/StructureDefinition/PatientMCDT",
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "ProcedureRequest.context",
        "path": "ProcedureRequest.context",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://spms.min-saude.pt/fhir/StructureDefinition/MyEncounter_MCDT",
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "ProcedureRequest.occurrence[x]:occurrencePeriod",
        "path": "ProcedureRequest.occurrencePeriod",
        "sliceName": "occurrencePeriod",
        "min": 1,
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "ProcedureRequest.occurrence[x]:occurrencePeriod.start",
        "path": "ProcedureRequest.occurrencePeriod.start",
        "min": 1
      },
      {
        "id": "ProcedureRequest.occurrence[x]:occurrencePeriod.end",
        "path": "ProcedureRequest.occurrencePeriod.end",
        "min": 1
      },
      {
        "id": "ProcedureRequest.authoredOn",
        "path": "ProcedureRequest.authoredOn",
        "min": 1
      },
      {
        "id": "ProcedureRequest.requester",
        "path": "ProcedureRequest.requester",
        "min": 1
      },
      {
        "id": "ProcedureRequest.requester.agent",
        "path": "ProcedureRequest.requester.agent",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://spms.min-saude.pt/fhir/StructureDefinition/MyPractitioner_MCDT",
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "ProcedureRequest.requester.onBehalfOf",
        "path": "ProcedureRequest.requester.onBehalfOf",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://spms.min-saude.pt/fhir/StructureDefinition/MyOrganization_MCDT",
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "ProcedureRequest.supportingInfo",
        "path": "ProcedureRequest.supportingInfo",
        "type": [
          {
            "code": "Reference",
            "profile": "MyFlagMCDT",
            "targetProfile": "https://spms.min-saude.pt/fhir/StructureDefinition/MyFlag_MCDT",
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      },
      {
        "id": "ProcedureRequest.specimen",
        "path": "ProcedureRequest.specimen",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://spms.min-saude.pt/fhir/StructureDefinition/MySpecimen_MCDT",
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      }
    ]
  }
}