{
  "resourceType": "StructureDefinition",
  "language": "pt-BR",
  "url": "http://www.saude.ba.gov.br/fhir/r4/StructureDefinition/BADiagnosticoEmergencia-1.0",
  "version": "1.0",
  "name": "BADiagnosticoEmergencia",
  "title": "Diagnóstico de Emergência",
  "status": "active",
  "date": "2021-05-25",
  "publisher": "Secretaria da Saúde do Estado da Bahia",
  "description": "Diagnóstico emitido por um profissional durante uma Emêrgencia.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "DiagnosticReport",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport",
        "path": "DiagnosticReport",
        "short": "Diagnóstico de Internação",
        "definition": "Diagnóstico emitido por um profissional durante uma Internação: seja no momento da Admissão ou ao longo da Internação em si.",
        "alias": [
          "Diagnóstico",
          "Conclusão Médica",
          "CID"
        ]
      },
      {
        "id": "DiagnosticReport.extension:classificacaoDiagnosticoEmergencia",
        "path": "DiagnosticReport.extension",
        "sliceName": "classificacaoDiagnosticoEmergencia",
        "definition": "Informações responsáveis pela classificação do Diagnóstico quanto a categoria ('Primário' ou 'Secundário') e origem ('Admissão' ou 'Atendimento').",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://www.saude.ba.gov.br/fhir/r4/StructureDefinition/BAClassificacaoDiagnostico-1.0"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.extension:statusDiagnostico",
        "path": "DiagnosticReport.extension",
        "sliceName": "statusDiagnostico",
        "short": "Status do Diagnóstico",
        "definition": "Informações responsáveis pelo status do diagnóstico.",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://www.saude.ba.gov.br/fhir/r4/StructureDefinition/BAStatusDiagnostico-1.0"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.identifier",
        "path": "DiagnosticReport.identifier",
        "min": 1
      },
      {
        "id": "DiagnosticReport.basedOn",
        "path": "DiagnosticReport.basedOn",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.category.coding.system",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "DiagnosticReport.category.coding.system",
        "min": 1
      },
      {
        "id": "DiagnosticReport.category.coding.code",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "DiagnosticReport.category.coding.code",
        "min": 1
      },
      {
        "id": "DiagnosticReport.category.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "DiagnosticReport.category.text",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.code",
        "path": "DiagnosticReport.code",
        "short": "Código do diagnóstico",
        "definition": "Código que descreve qual o diagnóstico encontrado",
        "comment": "No momento ficará com o valor fixo '10210-3' -> 'Physical findings of General status Narrative'"
      },
      {
        "id": "DiagnosticReport.code.coding.system",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "DiagnosticReport.code.coding.system",
        "min": 1
      },
      {
        "id": "DiagnosticReport.code.coding.code",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "DiagnosticReport.code.coding.code",
        "min": 1
      },
      {
        "id": "DiagnosticReport.code.coding.userSelected",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "DiagnosticReport.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.code.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "DiagnosticReport.code.text",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://www.saude.ba.gov.br/fhir/r4/StructureDefinition/BAPaciente-1.0"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.encounter",
        "path": "DiagnosticReport.encounter",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://www.saude.ba.gov.br/fhir/r4/StructureDefinition/BAEmergencia-1.0"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.effective[x]",
        "path": "DiagnosticReport.effective[x]",
        "short": "Data do diagnóstico",
        "definition": "A partir de que momento o diagnóstico foi emitido e passa a ser válido",
        "max": "0",
        "type": [
          {
            "code": "dateTime"
          }
        ]
      },
      {
        "id": "DiagnosticReport.issued",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "DiagnosticReport.issued",
        "short": "Data do diagnóstico",
        "definition": "A partir de que momento o diagnóstico foi emitido e passa a ser válido"
      },
      {
        "id": "DiagnosticReport.performer",
        "path": "DiagnosticReport.performer",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ]
      },
      {
        "id": "DiagnosticReport.resultsInterpreter",
        "path": "DiagnosticReport.resultsInterpreter",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.specimen",
        "path": "DiagnosticReport.specimen",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.imagingStudy",
        "path": "DiagnosticReport.imagingStudy",
        "max": "0"
      },
      {
        "id": "DiagnosticReport.media",
        "path": "DiagnosticReport.media",
        "comment": "Pode ser usado futuramente, com a adição de imagens e laudos de exames. Por enquanto encontra-se sem uso"
      },
      {
        "id": "DiagnosticReport.conclusionCode",
        "path": "DiagnosticReport.conclusionCode",
        "short": "Código de conclusão",
        "definition": "Código que descreve a conclusão alcançada após um ou mais encontros assistenciais",
        "min": 1,
        "binding": {
          "strength": "required",
          "description": "Código CID-10 do diagnóstico",
          "valueSet": "http://www.saude.ba.gov.br/fhir/r4/ValueSet/BACID-10-1.0"
        }
      },
      {
        "id": "DiagnosticReport.presentedForm",
        "path": "DiagnosticReport.presentedForm",
        "max": "0"
      }
    ]
  }
}