{
  "resourceType": "StructureDefinition",
  "id": "us-core-condition-va",
  "url": "http://vha.gov/fhir/StructureDefinition/us-core-condition-va",
  "name": "us-core-condition-va",
  "status": "draft",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Condition",
  "baseDefinition": "http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Condition",
        "path": "Condition",
        "definition": "A derived profile on the US Core Condition profile.  Intended to represent problems and conditions.   Adds the following extensions and constraints to the base HL7 Observation resource:\r\n- Proximal-provenance-extension:  Denotes the most recent source of the documented information\r\n- Presence-indicator-extension:  Denotes whether the condition is present, absent, or indeterminate.  Used to formalize negation for Conditions\r\n- Constrains the \"code\" element to values from SNOMED-CT that are (1) in the Clinical Finding hierarchy, (2) in the hierarchy rooted at \"Family history of clinical finding (situation)\", or (3) in the hierarchy rooted at History of clinical finding in subject (situation).  \r\n- Requires \"bodySite\" element to be populated with values from the SNOMED-CT Body Structures hierarchy (value set http://hl7.org/fhir/ValueSet/body-site)"
      },
      {
        "id": "Condition.extension",
        "path": "Condition.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Condition.extension:proximal-provenance-extension",
        "path": "Condition.extension",
        "sliceName": "proximal-provenance-extension",
        "type": [
          {
            "code": "Extension",
            "profile": "http://vha.gov/fhir/StructureDefinition/proximal-provenance-extension"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Condition.extension:presence-indicator-extension",
        "path": "Condition.extension",
        "sliceName": "presence-indicator-extension",
        "type": [
          {
            "code": "Extension",
            "profile": "http://vha.gov/fhir/StructureDefinition/presence-indicator-extension"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Condition.code",
        "path": "Condition.code",
        "short": "Identification of the condition, problem or diagnosis for the us-core-condition-va profile (http://vha.gov/fhir/StructureDefinition/us-core-condition-va)",
        "definition": "Identification of the condition, problem or diagnosis for the us-core-condition-va profile (http://vha.gov/fhir/StructureDefinition/us-core-condition-va).    The associated value set constrains the \"code\" element to values from SNOMED-CT that are (1) in the Clinical Finding hierarchy, (2) in the hierarchy rooted at \"Family history of clinical finding (situation)\", or (3) in the hierarchy rooted at History of clinical finding in subject (situation).",
        "comment": "The purpose of the value-set restrictions is to prevent the use of those SNOMED-CT codes from the \"situation-with-explicit-context\" that (1)  explicitly negate clinical concepts (because the us-core-condition-va profile uses an explicit extension element to represent negation) or (2) duplicate concepts in the SNOMED-CT \"clinical finding\" hierarchy.",
        "requirements": "1..1 because all documented conditions should be coded if possible (note that the CodeableConcept data type allows the use of text only, with no coded value, but this should be the case only if no code exists.",
        "binding": {
          "strength": "required",
          "valueSetReference": {
            "reference": "http://vha.gov/fhir/ValueSet/us-core-problem-va"
          }
        }
      },
      {
        "id": "Condition.bodySite",
        "path": "Condition.bodySite",
        "definition": "The anatomical location where this condition manifests itself.  In this profile, must be populated with values from the SNOMED-CT Body Structures hierarchy (value set http://hl7.org/fhir/ValueSet/body-site)",
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "BodySite"
            }
          ],
          "strength": "required",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/ValueSet/body-site"
          }
        }
      }
    ]
  }
}