{
  "resourceType": "StructureDefinition",
  "url": "https://example.org/fhir/StructureDefinition/MyCondition",
  "name": "Condition",
  "status": "draft",
  "date": "2022-12-20T12:19:32.7242267+00:00",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Condition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Condition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Condition.identifier",
        "path": "Condition.identifier",
        "comment": "Identificador interno del diagnóstico en Selene.\r\nThis is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)).  It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types.  For example, multiple Patient and a Person resource instance might share the same social insurance number.",
        "max": "1"
      },
      {
        "id": "Condition.identifier.use",
        "path": "Condition.identifier.use",
        "comment": "Valor enviado: official \r\nApplications can assume that an identifier is permanent unless it explicitly says that it is temporary."
      },
      {
        "id": "Condition.identifier.type",
        "path": "Condition.identifier.type",
        "max": "0"
      },
      {
        "id": "Condition.identifier.system",
        "path": "Condition.identifier.system",
        "comment": "Identificador del hospital en el que se ha registrado.\r\nIdentifier.system is always case sensitive."
      },
      {
        "id": "Condition.identifier.period",
        "path": "Condition.identifier.period",
        "max": "0"
      },
      {
        "id": "Condition.identifier.assigner",
        "path": "Condition.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Condition.clinicalStatus",
        "path": "Condition.clinicalStatus",
        "comment": "Estado del diagnóstico. \r\nThe data type is CodeableConcept because clinicalStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity."
      },
      {
        "id": "Condition.clinicalStatus.coding.version",
        "path": "Condition.clinicalStatus.coding.version",
        "max": "0"
      },
      {
        "id": "Condition.clinicalStatus.coding.display",
        "path": "Condition.clinicalStatus.coding.display",
        "max": "0"
      },
      {
        "id": "Condition.clinicalStatus.coding.userSelected",
        "path": "Condition.clinicalStatus.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Condition.clinicalStatus.text",
        "path": "Condition.clinicalStatus.text",
        "max": "0"
      },
      {
        "id": "Condition.verificationStatus",
        "path": "Condition.verificationStatus",
        "comment": "Indicador de confirmación del diagnóstico.\r\nverificationStatus is not required.  For example, when a patient has abdominal pain in the ED, there is not likely going to be a verification status.\nThe data type is CodeableConcept because verificationStatus has some clinical judgment involved, such that there might need to be more specificity than the required FHIR value set allows. For example, a SNOMED coding might allow for additional specificity."
      },
      {
        "id": "Condition.verificationStatus.coding.version",
        "path": "Condition.verificationStatus.coding.version",
        "max": "0"
      },
      {
        "id": "Condition.verificationStatus.coding.display",
        "path": "Condition.verificationStatus.coding.display",
        "max": "0"
      },
      {
        "id": "Condition.verificationStatus.coding.userSelected",
        "path": "Condition.verificationStatus.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Condition.verificationStatus.text",
        "path": "Condition.verificationStatus.text",
        "max": "0"
      },
      {
        "id": "Condition.category",
        "path": "Condition.category",
        "comment": "Categoría del diagnóstico.\r\nThe categorization is often highly contextual and may appear poorly differentiated or not very useful in other contexts."
      },
      {
        "id": "Condition.category.coding.version",
        "path": "Condition.category.coding.version",
        "max": "0"
      },
      {
        "id": "Condition.category.coding.userSelected",
        "path": "Condition.category.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Condition.category.text",
        "path": "Condition.category.text",
        "max": "0"
      },
      {
        "id": "Condition.severity",
        "path": "Condition.severity",
        "comment": "Pendiente de confirmar si tenemos el dato disponible en Selene.\r\nCoding of the severity with a terminology is preferred, where possible."
      },
      {
        "id": "Condition.code",
        "path": "Condition.code",
        "comment": "Código CIE y catálogo del diagnóstico.\r\nNot all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination."
      },
      {
        "id": "Condition.code.coding",
        "path": "Condition.code.coding",
        "comment": "Código CIE y catálogo del diagnóstico.\r\nCodes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.  Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true."
      },
      {
        "id": "Condition.code.coding.version",
        "path": "Condition.code.coding.version",
        "max": "0"
      },
      {
        "id": "Condition.code.coding.userSelected",
        "path": "Condition.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Condition.code.text",
        "path": "Condition.code.text",
        "max": "0"
      },
      {
        "id": "Condition.bodySite",
        "path": "Condition.bodySite",
        "max": "0"
      },
      {
        "id": "Condition.subject",
        "path": "Condition.subject",
        "comment": "Paciente al que pertenece el diagnóstico.\r\nReferences SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository."
      },
      {
        "id": "Condition.subject.reference",
        "path": "Condition.subject.reference",
        "max": "0"
      },
      {
        "id": "Condition.subject.type",
        "path": "Condition.subject.type",
        "fixedUri": "Patient"
      },
      {
        "id": "Condition.subject.identifier.type.coding",
        "path": "Condition.subject.identifier.type.coding",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/resource-types"
        }
      },
      {
        "id": "Condition.subject.identifier.type.coding.version",
        "path": "Condition.subject.identifier.type.coding.version",
        "max": "0"
      },
      {
        "id": "Condition.subject.identifier.type.coding.code",
        "path": "Condition.subject.identifier.type.coding.code",
        "fixedCode": "Patient"
      },
      {
        "id": "Condition.subject.identifier.type.coding.display",
        "path": "Condition.subject.identifier.type.coding.display",
        "max": "0"
      },
      {
        "id": "Condition.subject.identifier.type.coding.userSelected",
        "path": "Condition.subject.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Condition.subject.identifier.type.text",
        "path": "Condition.subject.identifier.type.text",
        "max": "0"
      },
      {
        "id": "Condition.subject.identifier.period",
        "path": "Condition.subject.identifier.period",
        "max": "0"
      },
      {
        "id": "Condition.subject.identifier.assigner",
        "path": "Condition.subject.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Condition.subject.display",
        "path": "Condition.subject.display",
        "max": "0"
      },
      {
        "id": "Condition.encounter",
        "path": "Condition.encounter",
        "comment": "Acto clínico en el que se ha codificado el diagnóstico.\r\nThis will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter. This record indicates the encounter this particular record is associated with.  In the case of a \"new\" diagnosis reflecting ongoing/revised information about the condition, this might be distinct from the first encounter in which the underlying condition was first \"known\"."
      },
      {
        "id": "Condition.encounter.reference",
        "path": "Condition.encounter.reference",
        "max": "0"
      },
      {
        "id": "Condition.encounter.type",
        "path": "Condition.encounter.type",
        "fixedUri": "Encounter"
      },
      {
        "id": "Condition.encounter.identifier.type.coding",
        "path": "Condition.encounter.identifier.type.coding",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/resource-types"
        }
      },
      {
        "id": "Condition.encounter.identifier.type.coding.version",
        "path": "Condition.encounter.identifier.type.coding.version",
        "max": "0"
      },
      {
        "id": "Condition.encounter.identifier.type.coding.code",
        "path": "Condition.encounter.identifier.type.coding.code",
        "fixedCode": "Encounter"
      },
      {
        "id": "Condition.encounter.identifier.type.coding.display",
        "path": "Condition.encounter.identifier.type.coding.display",
        "max": "0"
      },
      {
        "id": "Condition.encounter.identifier.type.coding.userSelected",
        "path": "Condition.encounter.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Condition.encounter.identifier.type.text",
        "path": "Condition.encounter.identifier.type.text",
        "max": "0"
      },
      {
        "id": "Condition.encounter.identifier.period",
        "path": "Condition.encounter.identifier.period",
        "max": "0"
      },
      {
        "id": "Condition.encounter.identifier.assigner",
        "path": "Condition.encounter.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Condition.encounter.display",
        "path": "Condition.encounter.display",
        "max": "0"
      },
      {
        "id": "Condition.onset[x]",
        "path": "Condition.onset[x]",
        "max": "0"
      },
      {
        "id": "Condition.abatement[x]",
        "path": "Condition.abatement[x]",
        "max": "0"
      },
      {
        "id": "Condition.recordedDate",
        "path": "Condition.recordedDate",
        "comment": "Fecha del diagnóstico."
      },
      {
        "id": "Condition.recorder",
        "path": "Condition.recorder",
        "max": "0"
      },
      {
        "id": "Condition.asserter",
        "path": "Condition.asserter",
        "comment": "Médico que registra el diagnóstico.\r\nReferences SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository."
      },
      {
        "id": "Condition.asserter.reference",
        "path": "Condition.asserter.reference",
        "max": "0"
      },
      {
        "id": "Condition.asserter.type",
        "path": "Condition.asserter.type",
        "fixedUri": "Practitioner"
      },
      {
        "id": "Condition.asserter.identifier.type.coding",
        "path": "Condition.asserter.identifier.type.coding",
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/resource-types"
        }
      },
      {
        "id": "Condition.asserter.identifier.type.coding.version",
        "path": "Condition.asserter.identifier.type.coding.version",
        "max": "0"
      },
      {
        "id": "Condition.asserter.identifier.type.coding.code",
        "path": "Condition.asserter.identifier.type.coding.code",
        "fixedCode": "Practitioner"
      },
      {
        "id": "Condition.asserter.identifier.type.coding.display",
        "path": "Condition.asserter.identifier.type.coding.display",
        "max": "0"
      },
      {
        "id": "Condition.asserter.identifier.type.coding.userSelected",
        "path": "Condition.asserter.identifier.type.coding.userSelected",
        "max": "0"
      },
      {
        "id": "Condition.asserter.identifier.type.text",
        "path": "Condition.asserter.identifier.type.text",
        "max": "0"
      },
      {
        "id": "Condition.asserter.identifier.period",
        "path": "Condition.asserter.identifier.period",
        "max": "0"
      },
      {
        "id": "Condition.asserter.identifier.assigner",
        "path": "Condition.asserter.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Condition.asserter.display",
        "path": "Condition.asserter.display",
        "max": "0"
      },
      {
        "id": "Condition.stage",
        "path": "Condition.stage",
        "max": "0"
      },
      {
        "id": "Condition.evidence",
        "path": "Condition.evidence",
        "max": "0"
      },
      {
        "id": "Condition.note",
        "path": "Condition.note",
        "max": "0"
      }
    ]
  }
}