This page is part of the FHIR Specification (v0.0.82: DSTU 1). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

StructureDefinition: QICore-Condition

StructureDefinition for Profile of Condition for decision support/quality metrics. Defines the core set of elements and extensions for quality rule and measure authors.

{
  "resourceType": "StructureDefinition",
  "id": "condition-qicore-qicore-condition",
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "url": "http://hl7.org/fhir/StructureDefinition/condition-qicore-qicore-condition",
  "name": "QICore-Condition",
  "publisher": "Health Level Seven, Inc. - CQI WG",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/special/committees/CQI"
        }
      ]
    }
  ],
  "description": "Profile of Condition for decision support/quality metrics. Defines the core set of elements and extensions for quality rule and measure authors.",
  "status": "draft",
  "date": "2015-02-27",
  "mapping": [
    {
      "identity": "qdm",
      "uri": "http://www.healthit.gov/quality-data-model",
      "name": "Quality Data Model"
    }
  ],
  "type": "constraint",
  "abstract": false,
  "base": "http://hl7.org/fhir/StructureDefinition/Condition",
  "snapshot": {
    "element": [
      {
        "path": "Condition",
        "name": "QICore-Condition",
        "short": "Detailed information about conditions, problems or diagnoses",
        "definition": "Use to record detailed information about conditions, problems or diagnoses recognized by a clinician. There are many uses including: recording a Diagnosis during an Encounter; populating a problem List or a Summary Statement, such as a Discharge Summary.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Condition"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "PPR message"
          },
          {
            "identity": "rim",
            "map": "Observation[classCode=OBS, moodCode=EVN, code=ASSERTION, value<Diagnosis]"
          },
          {
            "identity": "qdm",
            "map": "Diagnosis, Active, Inactive or Resolved"
          }
        ]
      },
      {
        "path": "Condition.id",
        "short": "Logical id of this artefact",
        "definition": "The logical id of the resource, as used in the url for the resoure. Once assigned, this value never changes.",
        "comments": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ]
      },
      {
        "path": "Condition.meta",
        "short": "Metadata about the resource",
        "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Meta"
          }
        ]
      },
      {
        "path": "Condition.implicitRules",
        "short": "A set of rules under which this content was created",
        "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.",
        "comments": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element as much as possible.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ],
        "isModifier": true
      },
      {
        "path": "Condition.language",
        "short": "Language of the resource content",
        "definition": "The base language in which the resource is written.",
        "comments": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource\n\nNot all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "binding": {
          "name": "Language",
          "strength": "required",
          "description": "A human language",
          "valueSetUri": "http://tools.ietf.org/html/bcp47"
        }
      },
      {
        "path": "Condition.text",
        "short": "Text summary of the resource, for human interpretation",
        "definition": "A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
        "comments": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative.",
        "alias": [
          "narrative",
          "html",
          "xhtml",
          "display"
        ],
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Narrative"
          }
        ],
        "condition": [
          "dom-1"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "Act.text?"
          }
        ]
      },
      {
        "path": "Condition.contained",
        "short": "Contained, inline Resources",
        "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
        "comments": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again.",
        "alias": [
          "inline resources",
          "anonymous resources",
          "contained resources"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Resource"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Condition.extension",
        "slicing": {
          "discriminator": [
            "url"
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ]
      },
      {
        "path": "Condition.extension",
        "name": "contributionToDeath",
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/condition-contributionToDeath"
          }
        ]
      },
      {
        "path": "Condition.extension",
        "name": "criticality",
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/condition-criticality"
          }
        ]
      },
      {
        "path": "Condition.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Condition.identifier",
        "short": "External Ids for this condition",
        "definition": "This records identifiers associated with this condition that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).",
        "requirements": "Need to allow connection to a wider workflow.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".id"
          }
        ]
      },
      {
        "path": "Condition.patient",
        "short": "Who has the condition?",
        "definition": "Indicates the patient who the condition record is associated with.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/patient-qicore-qicore-patient"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PID-3"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=SBJ].role[classCode=PAT]"
          }
        ]
      },
      {
        "path": "Condition.encounter",
        "short": "Encounter when condition first asserted",
        "definition": "Encounter during which the condition was first asserted.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/encounter-qicore-qicore-encounter"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PV1-19 (+PV1-54)"
          },
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }
        ]
      },
      {
        "path": "Condition.asserter",
        "short": "Person who asserts this condition",
        "definition": "Person who takes responsibility for asserting the existence of the condition as part of the electronic record.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/patient-qicore-qicore-patient"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/practitioner-qicore-qicore-practitioner"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "REL-7.1 identifier + REL-7.12 type code"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=AUT].role"
          }
        ]
      },
      {
        "path": "Condition.dateAsserted",
        "short": "When first detected/suspected/entered",
        "definition": "Estimated or actual date the condition/problem/diagnosis was first detected/suspected.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "date"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "REL-11"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=AUT].time"
          }
        ]
      },
      {
        "path": "Condition.code",
        "short": "Identification of the condition, problem or diagnosis",
        "definition": "Identification of the condition, problem or diagnosis.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true,
        "binding": {
          "name": "DAFProblemCode",
          "strength": "extensible",
          "description": "Valueset to describe the actual problem experienced by the patient",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/vs/daf-problem"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "PRB-3"
          },
          {
            "identity": "rim",
            "map": ".value"
          },
          {
            "identity": "qdm",
            "map": "primary code"
          }
        ]
      },
      {
        "path": "Condition.category",
        "short": "E.g. complaint | symptom | finding | diagnosis",
        "definition": "A category assigned to the condition. E.g. complaint | symptom | finding | diagnosis.",
        "comments": "The categorization is often highly contextual and may appear poorly differentiated or not very useful in other contexts.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "mustSupport": true,
        "binding": {
          "name": "ConditionCategory",
          "strength": "required",
          "description": "A category assigned to the condition. E.g. finding | Condition | diagnosis | concern | condition",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/vs/condition-category"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "'problem' if from PRB-3. 'diagnosis' if from DG1 segment in PV1 message"
          },
          {
            "identity": "rim",
            "map": ".code"
          }
        ]
      },
      {
        "path": "Condition.clinicalStatus",
        "short": "provisional | working | confirmed | refuted | entered-in-error | unknown",
        "definition": "The clinical status of the condition.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ],
        "mustSupport": true,
        "isModifier": true,
        "binding": {
          "name": "ConditionClinicalStatus",
          "strength": "required",
          "description": "The clinical status of the Condition or diagnosis",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/vs/condition-status"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "PRB-14 / DG1-6"
          },
          {
            "identity": "rim",
            "map": ".code (pre or post-coordinated in)\n\nCan use valueNegationInd for refuted"
          }
        ]
      },
      {
        "path": "Condition.severity",
        "short": "Subjective severity of condition",
        "definition": "A subjective assessment of the severity of the condition as evaluated by the clinician.",
        "comments": "Coding of the severity with a terminology is preferred, where possible.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "name": "ConditionSeverity",
          "strength": "example",
          "description": "A subjective assessment of the severity of the condition as evaluated by the clinician.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/vs/condition-severity"
          }
        },
        "mapping": [
          {
            "identity": "v2",
            "map": "PRB-26 / ABS-3"
          },
          {
            "identity": "rim",
            "map": "Can be pre/post-coordinated into value.  Or\n./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"severity\"].value"
          }
        ]
      },
      {
        "path": "Condition.onset[x]",
        "short": "Estimated or actual date,  date-time, or age",
        "definition": "Estimated or actual date or date-time  the condition began, in the opinion of the clinician.",
        "comments": "Age is generally used when the patient reports an age at which the Condition began to occur.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          },
          {
            "code": "Age"
          },
          {
            "code": "Period"
          },
          {
            "code": "Range"
          },
          {
            "code": "string"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "v2",
            "map": "PRB-16"
          },
          {
            "identity": "rim",
            "map": ".effectiveTime.low\nor\n.inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"age at onset\"].value"
          },
          {
            "identity": "qdm",
            "map": "start datetime"
          }
        ]
      },
      {
        "path": "Condition.abatement[x]",
        "short": "If/when in resolution/remission",
        "definition": "The date or estimated date that the condition resolved or went into remission. This is called \"abatement\" because of the many overloaded connotations associated with \"remission\" or \"resolution\" - Conditions are never really resolved, but they can abate.",
        "comments": "There is no explicit distinction between resolution and remission because in many cases the distinction is not clear. Age is generally used when the patient reports an age at which the Condition abated.\n\nIf there is no abatement element, it is unknown whether the condition has resolved or entered remission; applications and users should generally assume that the condition is still valid.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "date"
          },
          {
            "code": "Age"
          },
          {
            "code": "boolean"
          },
          {
            "code": "Period"
          },
          {
            "code": "Range"
          },
          {
            "code": "string"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".effectiveTime.high\nor\n.inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"age at remission\"].value\nor\n.inboundRelationship[typeCode=SUBJ]source[classCode=CONC, moodCode=EVN].status=completed"
          },
          {
            "identity": "qdm",
            "map": "stop datetime"
          }
        ]
      },
      {
        "path": "Condition.stage",
        "short": "Stage/grade, usually assessed formally",
        "definition": "Clinical stage or grade of a condition. May include formal severity assessments.",
        "min": 0,
        "max": "1",
        "constraint": [
          {
            "key": "con-1",
            "name": "Stage rule",
            "severity": "error",
            "human": "Stage SHALL have summary or assessment",
            "xpath": "exists(f:summary) or exists(f:assessment)"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": "./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"stage/grade\"]"
          }
        ]
      },
      {
        "path": "Condition.stage.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Condition.stage.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Condition.stage.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Condition.stage.summary",
        "short": "Simple summary (disease specific)",
        "definition": "A simple summary of the stage such as \"Stage 3\". The determination of the stage is disease-specific.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "con-1"
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".value"
          }
        ]
      },
      {
        "path": "Condition.stage.assessment",
        "short": "Formal record of assessment",
        "definition": "Reference to a formal record of the evidence on which the staging assessment is based.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Resource"
          }
        ],
        "condition": [
          "con-1"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".self"
          }
        ]
      },
      {
        "path": "Condition.evidence",
        "short": "Supporting evidence",
        "definition": "Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed.",
        "comments": "The evidence may be a simple list of coded symptoms/manifestations, or references to observations or formal assessments, or both.",
        "min": 0,
        "max": "*",
        "constraint": [
          {
            "key": "con-2",
            "name": "Evidence",
            "severity": "error",
            "human": "evidence SHALL have code or details",
            "xpath": "exists(f:code) or exists(f:detail)"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=SPRT].target[classCode=OBS, moodCode=EVN]"
          }
        ]
      },
      {
        "path": "Condition.evidence.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Condition.evidence.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Condition.evidence.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Condition.evidence.code",
        "short": "Manifestation/symptom",
        "definition": "A manifestation or symptom that led to the recording of this condition.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "con-2"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "[code=\"diagnosis\"].value"
          }
        ]
      },
      {
        "path": "Condition.evidence.detail",
        "short": "Supporting information found elsewhere",
        "definition": "Links to other relevant information, including pathology reports.",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/Resource"
          }
        ],
        "condition": [
          "con-2"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".self"
          }
        ]
      },
      {
        "path": "Condition.location",
        "short": "Anatomical location, if relevant",
        "definition": "The anatomical location where this condition manifests itself.",
        "comments": "May be a summary code, or a reference to a very precise definition of the location, or both.",
        "min": 0,
        "max": "*",
        "constraint": [
          {
            "key": "con-3",
            "name": "Location",
            "severity": "error",
            "human": "location SHALL have code or details",
            "xpath": "exists(f:code) or exists(f:detail)"
          }
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".targetBodySiteCode"
          },
          {
            "identity": "qdm",
            "map": "anatomical location site and laterality"
          }
        ]
      },
      {
        "path": "Condition.location.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Condition.location.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Condition.location.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Condition.location.code",
        "short": "Location - may include laterality",
        "definition": "Code that identifies the structural location.",
        "comments": "May include laterality.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "con-3"
        ],
        "mustSupport": true,
        "mapping": [
          {
            "identity": "rim",
            "map": ".self"
          }
        ]
      },
      {
        "path": "Condition.location.detail",
        "short": "Precise location details",
        "definition": "Detailed anatomical location information.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "condition": [
          "con-3"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".originalText"
          }
        ]
      },
      {
        "path": "Condition.dueTo",
        "short": "Causes for this Condition",
        "definition": "Further conditions, problems, diagnoses, procedures or events or the substance that caused/triggered this Condition.",
        "comments": "Although a condition may be caused by a substance, this is not intended to be used to record allergies/adverse reactions to substances.",
        "min": 0,
        "max": "*",
        "constraint": [
          {
            "key": "con-4",
            "name": "Relationship1",
            "severity": "error",
            "human": "Relationship SHALL have either a code or a target",
            "xpath": "exists(f:code) != exists(f:target)"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".typeCode"
          }
        ]
      },
      {
        "path": "Condition.dueTo.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Condition.dueTo.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Condition.dueTo.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Condition.dueTo.code",
        "short": "Relationship target by means of a predefined code",
        "definition": "Code that identifies the target of this relationship. The code takes the place of a detailed instance target.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "con-4"
        ],
        "binding": {
          "name": "ConditionKind",
          "strength": "example",
          "description": "Identification of the Condition or diagnosis.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/vs/condition-code"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".target[classCode=OBS, moodCode=EVN].code"
          }
        ]
      },
      {
        "path": "Condition.dueTo.target",
        "short": "Relationship target resource",
        "definition": "Target of the relationship.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/condition-qicore-qicore-condition"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/procedure-qicore-qicore-procedure"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/medicationadministration-qicore-qicore-medicationadministration"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/medicationstatement-qicore-qicore-medicationstatement"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/immunization-qicore-qicore-immunization"
          }
        ],
        "condition": [
          "con-4"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".target[classCode=OBS, moodCode=EVN]"
          }
        ]
      },
      {
        "path": "Condition.occurredFollowing",
        "short": "Precedent for this Condition",
        "definition": "Further conditions, problems, diagnoses, procedures or events or the substance that preceded this Condition.",
        "min": 0,
        "max": "*",
        "constraint": [
          {
            "key": "con-5",
            "name": "Relationship2",
            "severity": "error",
            "human": "Relationship SHALL have either a code or a target",
            "xpath": "exists(f:code) != exists(f:target)"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".typeCode"
          }
        ]
      },
      {
        "path": "Condition.occurredFollowing.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references).",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "id"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Condition.occurredFollowing.extension",
        "short": "Additional Content defined by implementations",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "path": "Condition.occurredFollowing.modifierExtension",
        "short": "Extensions that cannot be ignored",
        "definition": "May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.",
        "comments": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
        "alias": [
          "extensions",
          "user content",
          "modifiers"
        ],
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "N/A"
          }
        ]
      },
      {
        "path": "Condition.occurredFollowing.code",
        "short": "Relationship target by means of a predefined code",
        "definition": "Code that identifies the target of this relationship. The code takes the place of a detailed instance target.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "con-5"
        ],
        "binding": {
          "name": "ConditionKind",
          "strength": "example",
          "description": "Identification of the Condition or diagnosis.",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/vs/condition-code"
          }
        },
        "mapping": [
          {
            "identity": "rim",
            "map": ".target[classCode=OBS, moodCode=EVN].code"
          }
        ]
      },
      {
        "path": "Condition.occurredFollowing.target",
        "short": "Relationship target resource",
        "definition": "Target of the relationship.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/condition-qicore-qicore-condition"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/procedure-qicore-qicore-procedure"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/medicationadministration-qicore-qicore-medicationadministration"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/medicationstatement-qicore-qicore-medicationstatement"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/immunization-qicore-qicore-immunization"
          }
        ],
        "condition": [
          "con-5"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".target[classCode=OBS, moodCode=EVN]"
          }
        ]
      },
      {
        "path": "Condition.notes",
        "short": "Additional information about the Condition",
        "definition": "Additional information about the Condition. This is a general notes/comments entry  for description of the Condition, its diagnosis and prognosis.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ],
        "mapping": [
          {
            "identity": "v2",
            "map": "NTE child of PRB"
          },
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "path": "Condition",
        "name": "QICore-Condition",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Condition"
          }
        ],
        "mapping": [
          {
            "identity": "qdm",
            "map": "Diagnosis, Active, Inactive or Resolved"
          }
        ]
      },
      {
        "path": "Condition.extension",
        "slicing": {
          "discriminator": [
            "url"
          ],
          "ordered": false,
          "rules": "open"
        }
      },
      {
        "path": "Condition.extension",
        "name": "contributionToDeath",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/condition-contributionToDeath"
          }
        ]
      },
      {
        "path": "Condition.extension",
        "name": "criticality",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": "http://hl7.org/fhir/StructureDefinition/condition-criticality"
          }
        ]
      },
      {
        "path": "Condition.patient",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/patient-qicore-qicore-patient"
          }
        ],
        "mustSupport": true
      },
      {
        "path": "Condition.encounter",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/encounter-qicore-qicore-encounter"
          }
        ],
        "mustSupport": true
      },
      {
        "path": "Condition.asserter",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/patient-qicore-qicore-patient"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/practitioner-qicore-qicore-practitioner"
          }
        ]
      },
      {
        "path": "Condition.dateAsserted",
        "mustSupport": true
      },
      {
        "path": "Condition.code",
        "mustSupport": true,
        "binding": {
          "name": "DAFProblemCode",
          "strength": "extensible",
          "description": "Valueset to describe the actual problem experienced by the patient",
          "valueSetReference": {
            "reference": "http://hl7.org/fhir/vs/daf-problem"
          }
        },
        "mapping": [
          {
            "identity": "qdm",
            "map": "primary code"
          }
        ]
      },
      {
        "path": "Condition.category",
        "mustSupport": true
      },
      {
        "path": "Condition.clinicalStatus",
        "mustSupport": true
      },
      {
        "path": "Condition.onset[x]",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "qdm",
            "map": "start datetime"
          }
        ]
      },
      {
        "path": "Condition.abatement[x]",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "qdm",
            "map": "stop datetime"
          }
        ]
      },
      {
        "path": "Condition.stage",
        "mustSupport": true
      },
      {
        "path": "Condition.stage.summary",
        "mustSupport": true
      },
      {
        "path": "Condition.stage.assessment"
      },
      {
        "path": "Condition.evidence"
      },
      {
        "path": "Condition.evidence.code"
      },
      {
        "path": "Condition.evidence.detail"
      },
      {
        "path": "Condition.location",
        "mustSupport": true,
        "mapping": [
          {
            "identity": "qdm",
            "map": "anatomical location site and laterality"
          }
        ]
      },
      {
        "path": "Condition.location.code",
        "mustSupport": true
      },
      {
        "path": "Condition.dueTo"
      },
      {
        "path": "Condition.dueTo.code"
      },
      {
        "path": "Condition.dueTo.target",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/condition-qicore-qicore-condition"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/procedure-qicore-qicore-procedure"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/medicationadministration-qicore-qicore-medicationadministration"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/medicationstatement-qicore-qicore-medicationstatement"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/immunization-qicore-qicore-immunization"
          }
        ]
      },
      {
        "path": "Condition.occurredFollowing"
      },
      {
        "path": "Condition.occurredFollowing.code"
      },
      {
        "path": "Condition.occurredFollowing.target",
        "type": [
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/condition-qicore-qicore-condition"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/procedure-qicore-qicore-procedure"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/medicationadministration-qicore-qicore-medicationadministration"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/medicationstatement-qicore-qicore-medicationstatement"
          },
          {
            "code": "Reference",
            "profile": "http://hl7.org/fhir/StructureDefinition/immunization-qicore-qicore-immunization"
          }
        ]
      }
    ]
  }
}