{
  "resourceType": "StructureDefinition",
  "url": "http://example.org/fhir/StructureDefinition/DiagnosticReport_egresosHosp_apimin",
  "name": "DiagnosticReport_egresosHosp_apimin",
  "status": "draft",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "DiagnosticReport",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "DiagnosticReport.code.coding",
        "path": "DiagnosticReport.code.coding",
        "mapping": [
          {
            "identity": "api-minsal",
            "map": "intento_suicidio o cond_cronica"
          }
        ]
      },
      {
        "id": "DiagnosticReport.subject",
        "path": "DiagnosticReport.subject",
        "short": "A quien hace referencia el reporte.",
        "definition": "A quien hace referencia el reporte. Usualmente es a un paciente, pero no siempre es así.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://example.org/fhir/StructureDefinition/Patient-Api-Minsal"
          }
        ]
      },
      {
        "id": "DiagnosticReport.context",
        "path": "DiagnosticReport.context",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://example.org/fhir/StructureDefinition/EpisodeOfCare_egresosHosp_apimin"
          }
        ]
      },
      {
        "id": "DiagnosticReport.codedDiagnosis.coding.code",
        "path": "DiagnosticReport.codedDiagnosis.coding.code",
        "short": "Código del diagnostico.",
        "definition": "Aquí se ingresa el valor del código del diagnostico.",
        "mapping": [
          {
            "identity": "api-minsal",
            "map": "diag1 o diag2"
          }
        ]
      },
      {
        "id": "DiagnosticReport.codedDiagnosis.coding.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "DiagnosticReport.codedDiagnosis.coding.display",
        "short": "Texto que se indentifica con el código.",
        "definition": "Nombre completo del código de diagnostico."
      },
      {
        "id": "DiagnosticReport.codedDiagnosis.text",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "DiagnosticReport.codedDiagnosis.text",
        "short": "Texto representativo del concepto.",
        "definition": "Texto donde si indica si el código de diagnostico es él \"Diagnostico Principal\" o una \"Causa Externa\"",
        "mapping": [
          {
            "identity": "api-minsal",
            "map": "Tdiag1 o Tdiag2"
          }
        ]
      }
    ]
  }
}