{
  "resourceType": "StructureDefinition",
  "url": "http://ehrrunner.com/fhir/StructureDefinition/RegulacaoAssistencial",
  "version": "1.0",
  "name": "RegulacaoAssistencial",
  "title": "Regulação Assistencial (MIRA)",
  "status": "draft",
  "date": "2024-01-24T18:16:52.4222349+00:00",
  "description": "Tarefa que representa o conjunto de informações da Regulação Assistencial (MIRA, PORTARIA CONJUNTA SAES/SEIDIGI Nº 3, DE 18 DE ABRIL DE 2023)",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Task",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Task",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Task.identifier",
        "path": "Task.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Task.identifier:localIdentifier",
        "path": "Task.identifier",
        "sliceName": "localIdentifier",
        "short": "Identificador do registro no sistema de origem",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.identifier:localIdentifier.use",
        "path": "Task.identifier.use",
        "max": "0"
      },
      {
        "id": "Task.identifier:localIdentifier.type",
        "path": "Task.identifier.type",
        "max": "0"
      },
      {
        "id": "Task.identifier:localIdentifier.system",
        "path": "Task.identifier.system",
        "short": "Identificador único do sistema de origem",
        "definition": "URL ou OID da instância/sistema de origem - fornecido pela plataforma.",
        "min": 1
      },
      {
        "id": "Task.identifier:localIdentifier.value",
        "path": "Task.identifier.value",
        "short": "Identificador do registro no sistema de origem",
        "definition": "Identificador do registro no sistema de origem.",
        "min": 1
      },
      {
        "id": "Task.identifier:localIdentifier.period",
        "path": "Task.identifier.period",
        "max": "0"
      },
      {
        "id": "Task.identifier:localIdentifier.assigner",
        "path": "Task.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Task.identifier:rndsIdentifier",
        "path": "Task.identifier",
        "sliceName": "rndsIdentifier",
        "max": "1"
      },
      {
        "id": "Task.identifier:rndsIdentifier.use",
        "path": "Task.identifier.use",
        "max": "0"
      },
      {
        "id": "Task.identifier:rndsIdentifier.type",
        "path": "Task.identifier.type",
        "max": "0"
      },
      {
        "id": "Task.identifier:rndsIdentifier.system",
        "path": "Task.identifier.system",
        "short": "OID da RNDS",
        "min": 1,
        "fixedUri": "urn:oid:1.3.6.1.4.1.54413.1.1.5.13"
      },
      {
        "id": "Task.identifier:rndsIdentifier.value",
        "path": "Task.identifier.value",
        "short": "Identificador do registro na RNDS",
        "min": 1
      },
      {
        "id": "Task.identifier:rndsIdentifier.period",
        "path": "Task.identifier.period",
        "max": "0"
      },
      {
        "id": "Task.identifier:rndsIdentifier.assigner",
        "path": "Task.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Task.instantiatesCanonical",
        "path": "Task.instantiatesCanonical",
        "max": "0"
      },
      {
        "id": "Task.instantiatesUri",
        "path": "Task.instantiatesUri",
        "max": "0"
      },
      {
        "id": "Task.basedOn",
        "path": "Task.basedOn",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ehrrunner.com/fhir/StructureDefinition/ServiceRequest",
              "http://ehrrunner.com/fhir/StructureDefinition/Referral"
            ]
          }
        ]
      },
      {
        "id": "Task.basedOn.reference",
        "path": "Task.basedOn.reference",
        "short": "Referência para a solicitação",
        "definition": "Referência para a solicitação que requer a regualação assistencial.",
        "min": 1
      },
      {
        "id": "Task.basedOn.type",
        "path": "Task.basedOn.type",
        "max": "0"
      },
      {
        "id": "Task.basedOn.identifier",
        "path": "Task.basedOn.identifier",
        "max": "0"
      },
      {
        "id": "Task.basedOn.display",
        "path": "Task.basedOn.display",
        "max": "0"
      },
      {
        "id": "Task.groupIdentifier",
        "path": "Task.groupIdentifier",
        "short": "Identificador de solicitações agrupadas no sistema de origem (caso exista)"
      },
      {
        "id": "Task.groupIdentifier.use",
        "path": "Task.groupIdentifier.use",
        "max": "0"
      },
      {
        "id": "Task.groupIdentifier.type",
        "path": "Task.groupIdentifier.type",
        "max": "0"
      },
      {
        "id": "Task.groupIdentifier.system",
        "path": "Task.groupIdentifier.system",
        "short": "Identificador único do sistema de origem",
        "definition": "URL ou OID da instância/sistema de origem - fornecido pela plataforma.",
        "min": 1
      },
      {
        "id": "Task.groupIdentifier.value",
        "path": "Task.groupIdentifier.value",
        "short": "Identificador do registro - solicitações agrupadas no sistema de origem (caso exista)",
        "min": 1
      },
      {
        "id": "Task.groupIdentifier.period",
        "path": "Task.groupIdentifier.period",
        "max": "0"
      },
      {
        "id": "Task.groupIdentifier.assigner",
        "path": "Task.groupIdentifier.assigner",
        "max": "0"
      },
      {
        "id": "Task.partOf",
        "path": "Task.partOf",
        "max": "0"
      },
      {
        "id": "Task.status",
        "path": "Task.status",
        "definition": "Status utilizados no MIRA:\r\nTask.status         |     estado MIRA\r\ndraft                   |    N/A\r\nrequested          |    Pendente\r\nreceived             |    N/A\r\naccepted            |    N/A\r\nrejected              |    Negado ou Devolvido para o solicitante\r\nready                  |    N/A\r\ncancelled            |    Cancelado\r\nin-progress         |    N/A\r\non-hold              |     N/A\r\nfailed                  |     N/A\r\ncompleted          |    Agendado, Atendido/Internado, Falta\r\nentered-in-error |    Excluído"
      },
      {
        "id": "Task.statusReason",
        "path": "Task.statusReason",
        "max": "0"
      },
      {
        "id": "Task.businessStatus",
        "path": "Task.businessStatus",
        "min": 1,
        "binding": {
          "strength": "required",
          "valueSet": "http://www.saude.gov.br/fhir/r4/ValueSet/BRStatusRegulacaoAssistencial"
        }
      },
      {
        "id": "Task.intent",
        "path": "Task.intent",
        "fixedCode": "plan"
      },
      {
        "id": "Task.code",
        "path": "Task.code",
        "max": "0"
      },
      {
        "id": "Task.description",
        "path": "Task.description",
        "max": "0"
      },
      {
        "id": "Task.focus",
        "path": "Task.focus",
        "max": "0"
      },
      {
        "id": "Task.for",
        "path": "Task.for",
        "short": "Paciente",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ehrrunner.com/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "Task.for.reference",
        "path": "Task.for.reference",
        "min": 1
      },
      {
        "id": "Task.for.type",
        "path": "Task.for.type",
        "max": "0"
      },
      {
        "id": "Task.for.identifier",
        "path": "Task.for.identifier",
        "max": "0"
      },
      {
        "id": "Task.for.display",
        "path": "Task.for.display",
        "max": "0"
      },
      {
        "id": "Task.encounter",
        "path": "Task.encounter",
        "max": "0"
      },
      {
        "id": "Task.executionPeriod",
        "path": "Task.executionPeriod",
        "max": "0"
      },
      {
        "id": "Task.authoredOn",
        "path": "Task.authoredOn",
        "min": 1
      },
      {
        "id": "Task.requester",
        "path": "Task.requester",
        "short": "Organização requisitante",
        "definition": "Organização requisitante, identificada pelo seu CNES.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ehrrunner.com/fhir/StructureDefinition/Organization"
            ]
          }
        ]
      },
      {
        "id": "Task.requester.reference",
        "path": "Task.requester.reference",
        "short": "Organização requisitante",
        "definition": "Referência literal e relativa para a organização requisitante. A referência é feita no formato: \"reference\":\"Organization/2.16.840.1.113883.13.36-{{cnes}}\".",
        "min": 1
      },
      {
        "id": "Task.requester.type",
        "path": "Task.requester.type",
        "max": "0"
      },
      {
        "id": "Task.requester.identifier",
        "path": "Task.requester.identifier",
        "max": "0"
      },
      {
        "id": "Task.performerType",
        "path": "Task.performerType",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Task.performerType:cbo",
        "path": "Task.performerType",
        "sliceName": "cbo",
        "short": "CBO do serviço solicitado",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "preferred",
          "valueSet": "http://www.saude.gov.br/fhir/r4/CodeSystem/BRCBO"
        }
      },
      {
        "id": "Task.performerType:cbo.coding",
        "path": "Task.performerType.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.performerType:specialty",
        "path": "Task.performerType",
        "sliceName": "specialty",
        "short": "Especialidade médica",
        "max": "1",
        "binding": {
          "strength": "preferred",
          "valueSet": "http://ehrrunner.com/fhir/ValueSet/Especialidade"
        }
      },
      {
        "id": "Task.performerType:specialty.coding",
        "path": "Task.performerType.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.performerType:filedOfPractice",
        "path": "Task.performerType",
        "sliceName": "filedOfPractice",
        "short": "Área de atuação médica",
        "max": "1",
        "binding": {
          "strength": "preferred",
          "valueSet": "http://ehrrunner.com/fhir/ValueSet/AreaAtuacao"
        }
      },
      {
        "id": "Task.performerType:filedOfPractice.coding",
        "path": "Task.performerType.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.owner",
        "path": "Task.owner",
        "short": "Central de Regulação",
        "definition": "Central de regualção, identificada pelo seu CNES.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ehrrunner.com/fhir/StructureDefinition/Organization"
            ]
          }
        ]
      },
      {
        "id": "Task.owner.reference",
        "path": "Task.owner.reference",
        "short": "Central de regulação",
        "definition": "Referência literal e relativa para a central de regulação. A referência é feita no formato: \"reference\":\"Organization/2.16.840.1.113883.13.36-{{cnes}}\".",
        "min": 1
      },
      {
        "id": "Task.owner.type",
        "path": "Task.owner.type",
        "max": "0"
      },
      {
        "id": "Task.owner.identifier",
        "path": "Task.owner.identifier",
        "max": "0"
      },
      {
        "id": "Task.location",
        "path": "Task.location",
        "max": "0"
      },
      {
        "id": "Task.reasonCode",
        "path": "Task.reasonCode",
        "short": "Motivo da solicitação (CID10)",
        "binding": {
          "strength": "required",
          "valueSet": "http://www.saude.gov.br/fhir/r4/CodeSystem/BRCID10"
        }
      },
      {
        "id": "Task.reasonReference",
        "path": "Task.reasonReference",
        "max": "0"
      },
      {
        "id": "Task.insurance",
        "path": "Task.insurance",
        "max": "0"
      },
      {
        "id": "Task.relevantHistory",
        "path": "Task.relevantHistory",
        "max": "0"
      },
      {
        "id": "Task.restriction",
        "path": "Task.restriction",
        "max": "0"
      },
      {
        "id": "Task.input",
        "path": "Task.input",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Task.input:modalidadeAssistencial",
        "path": "Task.input",
        "sliceName": "modalidadeAssistencial",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.input:modalidadeAssistencial.type.coding",
        "path": "Task.input.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.input:modalidadeAssistencial.type.coding.system",
        "path": "Task.input.type.coding.system",
        "fixedUri": "http://www.saude.gov.br/fhir/r4/CodeSystem/InformacoesRegualcaoAssistencial"
      },
      {
        "id": "Task.input:modalidadeAssistencial.type.coding.version",
        "path": "Task.input.type.coding.version",
        "max": "0"
      },
      {
        "id": "Task.input:modalidadeAssistencial.type.coding.code",
        "path": "Task.input.type.coding.code",
        "fixedCode": "modalidadeAssistencial"
      },
      {
        "id": "Task.input:modalidadeAssistencial.type.coding.display",
        "path": "Task.input.type.coding.display",
        "max": "0"
      },
      {
        "id": "Task.input:modalidadeAssistencial.type.coding.userSelected",
        "path": "Task.input.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Task.input:modalidadeAssistencial.type.text",
        "path": "Task.input.type.text",
        "max": "0"
      },
      {
        "id": "Task.input:modalidadeAssistencial.value[x]",
        "path": "Task.input.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://www.saude.gov.br/fhir/r4/ValueSet/BRModalidadeAssistencialMIRA"
        }
      },
      {
        "id": "Task.input:modalidadeAssistencial.value[x].coding",
        "path": "Task.input.value[x].coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.input:pacoteCuidadoIntegrado",
        "path": "Task.input",
        "sliceName": "pacoteCuidadoIntegrado",
        "max": "1"
      },
      {
        "id": "Task.input:pacoteCuidadoIntegrado.type.coding",
        "path": "Task.input.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.input:pacoteCuidadoIntegrado.type.coding.system",
        "path": "Task.input.type.coding.system",
        "min": 1,
        "fixedUri": "http://ehrrunner.com/fhir/CodeSystem/InformacoesRegualcaoAssistencial"
      },
      {
        "id": "Task.input:pacoteCuidadoIntegrado.type.coding.version",
        "path": "Task.input.type.coding.version",
        "max": "0"
      },
      {
        "id": "Task.input:pacoteCuidadoIntegrado.type.coding.code",
        "path": "Task.input.type.coding.code",
        "min": 1,
        "fixedCode": "pacoteCuidadoIntegrado"
      },
      {
        "id": "Task.input:pacoteCuidadoIntegrado.type.coding.display",
        "path": "Task.input.type.coding.display",
        "max": "0"
      },
      {
        "id": "Task.input:pacoteCuidadoIntegrado.type.coding.userSelected",
        "path": "Task.input.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Task.input:pacoteCuidadoIntegrado.value[x]",
        "path": "Task.input.value[x]",
        "short": "Código do \"pacote\" de procedimentos do cuidado integrado",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "strength": "preferred",
          "valueSet": "http://ehrrunner.com/fhir/ValueSet/PacoteCuidadoIntegrado"
        }
      },
      {
        "id": "Task.input:pacoteCuidadoIntegrado.value[x].coding",
        "path": "Task.input.value[x].coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.input:procedimento",
        "path": "Task.input",
        "sliceName": "procedimento",
        "short": "Procedimento(s) regulado(s)"
      },
      {
        "id": "Task.input:procedimento.type.coding",
        "path": "Task.input.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.input:procedimento.type.coding.system",
        "path": "Task.input.type.coding.system",
        "fixedUri": "http://www.saude.gov.br/fhir/r4/CodeSystem/InformacoesRegualcaoAssistencial"
      },
      {
        "id": "Task.input:procedimento.type.coding.version",
        "path": "Task.input.type.coding.version",
        "max": "0"
      },
      {
        "id": "Task.input:procedimento.type.coding.code",
        "path": "Task.input.type.coding.code",
        "fixedCode": "procedimento"
      },
      {
        "id": "Task.input:procedimento.type.coding.display",
        "path": "Task.input.type.coding.display",
        "max": "0"
      },
      {
        "id": "Task.input:procedimento.type.coding.userSelected",
        "path": "Task.input.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Task.input:procedimento.type.text",
        "path": "Task.input.type.text",
        "max": "0"
      },
      {
        "id": "Task.input:procedimento.value[x]",
        "path": "Task.input.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "Task.input:procedimento.value[x].coding",
        "path": "Task.input.value[x].coding",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Task.input:procedimento.value[x].coding:code",
        "path": "Task.input.value[x].coding",
        "sliceName": "code",
        "short": "Procedimento - Tabela SUS",
        "min": 1,
        "max": "1",
        "binding": {
          "strength": "required",
          "valueSet": "http://www.saude.gov.br/fhir/r4/ValueSet/BRProcedimentosNacionais-1.0"
        }
      },
      {
        "id": "Task.input:procedimento.value[x].coding:localCode",
        "path": "Task.input.value[x].coding",
        "sliceName": "localCode",
        "short": "Procedimento - Codificação do sistema de regulação"
      },
      {
        "id": "Task.input:dataAutorizacao",
        "path": "Task.input",
        "sliceName": "dataAutorizacao",
        "short": "Data de autorização",
        "max": "1"
      },
      {
        "id": "Task.input:dataAutorizacao.type.coding",
        "path": "Task.input.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.input:dataAutorizacao.type.coding.system",
        "path": "Task.input.type.coding.system",
        "min": 1,
        "fixedUri": "http://ehrrunner.com/fhir/CodeSystem/InformacoesRegualcaoAssistencial"
      },
      {
        "id": "Task.input:dataAutorizacao.type.coding.version",
        "path": "Task.input.type.coding.version",
        "max": "0"
      },
      {
        "id": "Task.input:dataAutorizacao.type.coding.code",
        "path": "Task.input.type.coding.code",
        "fixedCode": "dataAutorizacao"
      },
      {
        "id": "Task.input:dataAutorizacao.type.coding.display",
        "path": "Task.input.type.coding.display",
        "max": "0"
      },
      {
        "id": "Task.input:dataAutorizacao.type.coding.userSelected",
        "path": "Task.input.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Task.input:dataAutorizacao.type.text",
        "path": "Task.input.type.text",
        "max": "0"
      },
      {
        "id": "Task.input:dataAutorizacao.value[x]",
        "path": "Task.input.value[x]",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Task.input:codigoAutorizacao",
        "path": "Task.input",
        "sliceName": "codigoAutorizacao",
        "short": "Código da autorização (se houver)",
        "max": "1"
      },
      {
        "id": "Task.input:codigoAutorizacao.type.coding",
        "path": "Task.input.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.input:codigoAutorizacao.type.coding.system",
        "path": "Task.input.type.coding.system",
        "fixedUri": "http://www.saude.gov.br/fhir/r4/CodeSystem/InformacoesRegualcaoAssistencial"
      },
      {
        "id": "Task.input:codigoAutorizacao.type.coding.version",
        "path": "Task.input.type.coding.version",
        "max": "0"
      },
      {
        "id": "Task.input:codigoAutorizacao.type.coding.code",
        "path": "Task.input.type.coding.code",
        "fixedCode": "codigoAutorizacao"
      },
      {
        "id": "Task.input:codigoAutorizacao.type.coding.display",
        "path": "Task.input.type.coding.display",
        "max": "0"
      },
      {
        "id": "Task.input:codigoAutorizacao.type.coding.userSelected",
        "path": "Task.input.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Task.input:codigoAutorizacao.type.text",
        "path": "Task.input.type.text",
        "max": "0"
      },
      {
        "id": "Task.input:codigoAutorizacao.value[x]",
        "path": "Task.input.value[x]",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "Task.input:codigoAutorizacao.value[x].coding",
        "path": "Task.input.value[x].coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.input:codigoAutorizacao.value[x].coding.version",
        "path": "Task.input.value[x].coding.version",
        "max": "0"
      },
      {
        "id": "Task.input:codigoAutorizacao.value[x].coding.display",
        "path": "Task.input.value[x].coding.display",
        "max": "0"
      },
      {
        "id": "Task.input:codigoAutorizacao.value[x].coding.userSelected",
        "path": "Task.input.value[x].coding.userSelected",
        "max": "0"
      },
      {
        "id": "Task.input:codigoAutorizacao.value[x].text",
        "path": "Task.input.value[x].text",
        "max": "0"
      },
      {
        "id": "Task.output",
        "path": "Task.output",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Task.output:dataCriacaoAgendamento",
        "path": "Task.output",
        "sliceName": "dataCriacaoAgendamento",
        "short": "Data de criação do agendamento",
        "max": "1"
      },
      {
        "id": "Task.output:dataCriacaoAgendamento.type.coding",
        "path": "Task.output.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.output:dataCriacaoAgendamento.type.coding.system",
        "path": "Task.output.type.coding.system",
        "fixedUri": "http://ehrrunner.com/fhir/CodeSystem/InformacoesRegualcaoAssistencial"
      },
      {
        "id": "Task.output:dataCriacaoAgendamento.type.coding.version",
        "path": "Task.output.type.coding.version",
        "max": "0"
      },
      {
        "id": "Task.output:dataCriacaoAgendamento.type.coding.code",
        "path": "Task.output.type.coding.code",
        "fixedCode": "dataCriacaoAgendamento"
      },
      {
        "id": "Task.output:dataCriacaoAgendamento.type.coding.display",
        "path": "Task.output.type.coding.display",
        "max": "0"
      },
      {
        "id": "Task.output:dataCriacaoAgendamento.type.coding.userSelected",
        "path": "Task.output.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Task.output:dataCriacaoAgendamento.type.text",
        "path": "Task.output.type.text",
        "max": "0"
      },
      {
        "id": "Task.output:dataCriacaoAgendamento.value[x]",
        "path": "Task.output.value[x]",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "Task.output:dataAgendamento",
        "path": "Task.output",
        "sliceName": "dataAgendamento",
        "short": "Data agendada para realização do procedimento",
        "max": "1"
      },
      {
        "id": "Task.output:dataAgendamento.type.coding",
        "path": "Task.output.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.output:dataAgendamento.type.coding.system",
        "path": "Task.output.type.coding.system",
        "fixedUri": "http://ehrrunner.com/fhir/CodeSystem/InformacoesRegualcaoAssistencial"
      },
      {
        "id": "Task.output:dataAgendamento.type.coding.version",
        "path": "Task.output.type.coding.version",
        "max": "0"
      },
      {
        "id": "Task.output:dataAgendamento.type.coding.code",
        "path": "Task.output.type.coding.code",
        "fixedCode": "dataAgendamento"
      },
      {
        "id": "Task.output:dataAgendamento.type.coding.display",
        "path": "Task.output.type.coding.display",
        "max": "0"
      },
      {
        "id": "Task.output:dataAgendamento.type.coding.userSelected",
        "path": "Task.output.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Task.output:dataAgendamento.type.text",
        "path": "Task.output.type.text",
        "max": "0"
      },
      {
        "id": "Task.output:dataAgendamento.value[x]",
        "path": "Task.output.value[x]",
        "type": [
          {
            "code": "dateTime"
          },
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "Task.output:agendamento",
        "path": "Task.output",
        "sliceName": "agendamento",
        "short": "Agendamento (referência)",
        "definition": "Referência para o agendamento (Appointment), se disponível.",
        "max": "1"
      },
      {
        "id": "Task.output:agendamento.type.coding",
        "path": "Task.output.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.output:agendamento.type.coding.system",
        "path": "Task.output.type.coding.system",
        "fixedUri": "http://ehrrunner.com/fhir/CodeSystem/InformacoesRegualcaoAssistencial"
      },
      {
        "id": "Task.output:agendamento.type.coding.version",
        "path": "Task.output.type.coding.version",
        "max": "0"
      },
      {
        "id": "Task.output:agendamento.type.coding.code",
        "path": "Task.output.type.coding.code",
        "fixedCode": "agendamento"
      },
      {
        "id": "Task.output:agendamento.type.coding.display",
        "path": "Task.output.type.coding.display",
        "max": "0"
      },
      {
        "id": "Task.output:agendamento.type.coding.userSelected",
        "path": "Task.output.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Task.output:agendamento.type.text",
        "path": "Task.output.type.text",
        "max": "0"
      },
      {
        "id": "Task.output:agendamento.value[x]",
        "path": "Task.output.value[x]",
        "short": "Referência para o agendamento (Appointment), se disponível",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ehrrunner.com/fhir/StructureDefinition/Appointment"
            ]
          }
        ]
      },
      {
        "id": "Task.output:agendamento.value[x].type",
        "path": "Task.output.value[x].type",
        "max": "0"
      },
      {
        "id": "Task.output:agendamento.value[x].identifier",
        "path": "Task.output.value[x].identifier",
        "max": "0"
      },
      {
        "id": "Task.output:agendamento.value[x].display",
        "path": "Task.output.value[x].display",
        "max": "0"
      },
      {
        "id": "Task.output:dataExecucao",
        "path": "Task.output",
        "sliceName": "dataExecucao",
        "short": "Data da execução do procedimento ou data da internação",
        "max": "1"
      },
      {
        "id": "Task.output:dataExecucao.type.coding",
        "path": "Task.output.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.output:dataExecucao.type.coding.system",
        "path": "Task.output.type.coding.system",
        "fixedUri": "http://ehrrunner.com/fhir/CodeSystem/InformacoesRegualcaoAssistencial"
      },
      {
        "id": "Task.output:dataExecucao.type.coding.version",
        "path": "Task.output.type.coding.version",
        "max": "0"
      },
      {
        "id": "Task.output:dataExecucao.type.coding.code",
        "path": "Task.output.type.coding.code",
        "fixedCode": "dataExecucao"
      },
      {
        "id": "Task.output:dataExecucao.type.coding.display",
        "path": "Task.output.type.coding.display",
        "max": "0"
      },
      {
        "id": "Task.output:dataExecucao.type.coding.userSelected",
        "path": "Task.output.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Task.output:dataExecucao.type.text",
        "path": "Task.output.type.text",
        "max": "0"
      },
      {
        "id": "Task.output:dataExecucao.value[x]",
        "path": "Task.output.value[x]",
        "type": [
          {
            "code": "dateTime"
          },
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "Task.output:executante",
        "path": "Task.output",
        "sliceName": "executante",
        "short": "Executante (estabelecimento de saúde)",
        "definition": "Executante - identificado pelo seu CNES.",
        "max": "1"
      },
      {
        "id": "Task.output:executante.type.coding",
        "path": "Task.output.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.output:executante.type.coding.system",
        "path": "Task.output.type.coding.system",
        "fixedUri": "http://ehrrunner.com/fhir/CodeSystem/InformacoesRegualcaoAssistencial"
      },
      {
        "id": "Task.output:executante.type.coding.version",
        "path": "Task.output.type.coding.version",
        "max": "0"
      },
      {
        "id": "Task.output:executante.type.coding.code",
        "path": "Task.output.type.coding.code",
        "fixedCode": "executante"
      },
      {
        "id": "Task.output:executante.type.coding.display",
        "path": "Task.output.type.coding.display",
        "max": "0"
      },
      {
        "id": "Task.output:executante.type.coding.userSelected",
        "path": "Task.output.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Task.output:executante.type.text",
        "path": "Task.output.type.text",
        "max": "0"
      },
      {
        "id": "Task.output:executante.value[x]",
        "path": "Task.output.value[x]",
        "short": "Organização executante",
        "definition": "Referência literal e relativa para a organização executante. A referência é feita no formato: \"reference\":\"Organization/2.16.840.1.113883.13.36-{{cnes}}\".",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ehrrunner.com/fhir/StructureDefinition/Organization"
            ]
          }
        ]
      },
      {
        "id": "Task.output:procedimentoRealizado",
        "path": "Task.output",
        "sliceName": "procedimentoRealizado",
        "short": "Referêcia para o(s) procedimento(s) ou pacote de cuidado integrado realizado(s)."
      },
      {
        "id": "Task.output:procedimentoRealizado.type.coding",
        "path": "Task.output.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Task.output:procedimentoRealizado.type.coding.system",
        "path": "Task.output.type.coding.system",
        "fixedUri": "http://ehrrunner.com/fhir/CodeSystem/InformacoesRegualcaoAssistencial"
      },
      {
        "id": "Task.output:procedimentoRealizado.type.coding.version",
        "path": "Task.output.type.coding.version",
        "max": "0"
      },
      {
        "id": "Task.output:procedimentoRealizado.type.coding.code",
        "path": "Task.output.type.coding.code",
        "fixedCode": "procedimentoRealizado"
      },
      {
        "id": "Task.output:procedimentoRealizado.type.coding.display",
        "path": "Task.output.type.coding.display",
        "max": "0"
      },
      {
        "id": "Task.output:procedimentoRealizado.type.coding.userSelected",
        "path": "Task.output.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Task.output:procedimentoRealizado.type.text",
        "path": "Task.output.type.text",
        "max": "0"
      },
      {
        "id": "Task.output:procedimentoRealizado.value[x]",
        "path": "Task.output.value[x]",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://ehrrunner.com/fhir/StructureDefinition/Procedure"
            ]
          }
        ]
      }
    ]
  }
}