{
  "resourceType": "StructureDefinition",
  "id": "Condition",
  "meta": {
    "lastUpdated": "2019-10-31T22:29:23.356+00:00"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "Clinical.Summary"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "trial-use"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 3
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category",
      "valueCode": "patient"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "pc"
    }
  ],
  "url": "https://fhir.kemkes.go.id/r4/StructureDefinition/Condition",
  "version": "4.0.1",
  "name": "Condition",
  "status": "active",
  "date": "2022-07-08T15:10:50.6856647+00:00",
  "publisher": "Health Level Seven International (Patient Care)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/fhir"
        }
      ]
    },
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://www.hl7.org/Special/committees/patientcare/index.cfm"
        }
      ]
    }
  ],
  "description": "A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "workflow",
      "uri": "http://hl7.org/fhir/workflow",
      "name": "Workflow Pattern"
    },
    {
      "identity": "sct-concept",
      "uri": "http://snomed.info/conceptdomain",
      "name": "SNOMED CT Concept Domain Binding"
    },
    {
      "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"
    },
    {
      "identity": "sct-attr",
      "uri": "http://snomed.org/attributebinding",
      "name": "SNOMED CT Attribute Binding"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Condition",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource",
  "derivation": "specialization",
  "differential": {
    "element": [
      {
        "id": "Condition",
        "path": "Condition",
        "short": "Detailed information about conditions, problems or diagnoses",
        "definition": "A clinical condition, problem, diagnosis, or other event, situation, issue, or clinical concept that has risen to a level of concern.",
        "constraint": [
          {
            "key": "con-5",
            "severity": "error",
            "human": "Condition.clinicalStatus SHALL NOT be present if verification Status is entered-in-error",
            "expression": "verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code='entered-in-error').empty() or clinicalStatus.empty()",
            "xpath": "not(exists(f:verificationStatus/f:coding[f:system/@value='http://terminology.hl7.org/CodeSystem/condition-ver-status' and f:code/@value='entered-in-error'])) or not(exists(f:clinicalStatus))",
            "source": "http://hl7.org/fhir/StructureDefinition/Condition"
          },
          {
            "key": "con-4",
            "severity": "error",
            "human": "If condition is abated, then clinicalStatus must be either inactive, resolved, or remission",
            "expression": "abatement.empty() or clinicalStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-clinical' and (code='resolved' or code='remission' or code='inactive')).exists()",
            "xpath": "not(exists(*[starts-with(local-name(.), 'abatement')])) or exists(f:clinicalStatus/f:coding[f:system/@value='http://terminology.hl7.org/CodeSystem/condition-clinical' and f:code/@value=('resolved', 'remission', 'inactive')])",
            "source": "http://hl7.org/fhir/StructureDefinition/Condition"
          },
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
                "valueBoolean": true
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
                "valueMarkdown": "Most systems will expect a clinicalStatus to be valued for problem-list-items that are managed over time, but might not need a clinicalStatus for point in time encounter-diagnosis."
              }
            ],
            "key": "con-3",
            "severity": "warning",
            "human": "Condition.clinicalStatus SHALL be present if verificationStatus is not entered-in-error and category is problem-list-item",
            "expression": "clinicalStatus.exists() or verificationStatus.coding.where(system='http://terminology.hl7.org/CodeSystem/condition-ver-status' and code = 'entered-in-error').exists() or category.select($this='problem-list-item').empty()",
            "xpath": "exists(f:clinicalStatus) or exists(f:verificationStatus/f:coding/f:code/@value='entered-in-error') or not(exists(category[@value='problem-list-item']))",
            "source": "http://hl7.org/fhir/StructureDefinition/Condition"
          }
        ],
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event"
          },
          {
            "identity": "sct-concept",
            "map": "< 243796009 |Situation with explicit context| : 246090004 |Associated finding| = ( ( < 404684003 |Clinical finding| MINUS ( << 420134006 |Propensity to adverse reactions| OR << 473010000 |Hypersensitivity condition| OR << 79899007 |Drug interaction| OR << 69449002 |Drug action| OR << 441742003 |Evaluation finding| OR << 307824009 |Administrative status| OR << 385356007 |Tumor stage finding|)) OR < 272379006 |Event|)"
          },
          {
            "identity": "v2",
            "map": "PPR message"
          },
          {
            "identity": "rim",
            "map": "Observation[classCode=OBS, moodCode=EVN, code=ASSERTION, value<Diagnosis]"
          }
        ]
      },
      {
        "id": "Condition.identifier",
        "path": "Condition.identifier",
        "short": "External Ids for this condition",
        "definition": "Business identifiers assigned to this condition by the performer or other systems which remain constant as the resource is updated and propagates from server to server.",
        "comment": "This 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.",
        "requirements": "Allows identification of the condition as it is known by various participating systems and in a way that remains consistent across servers.",
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.identifier"
          },
          {
            "identity": "w5",
            "map": "FiveWs.identifier"
          },
          {
            "identity": "rim",
            "map": ".id"
          }
        ]
      },
      {
        "id": "Condition.clinicalStatus",
        "path": "Condition.clinicalStatus",
        "short": "active | recurrence | relapse | inactive | remission | resolved",
        "definition": "The clinical status of the condition.",
        "comment": "The 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.",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "con-3",
          "con-4",
          "con-5"
        ],
        "isModifier": true,
        "isModifierReason": "This element is labeled as a modifier because the status contains codes that mark the condition as no longer active.",
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ConditionClinicalStatus"
            }
          ],
          "strength": "required",
          "description": "The clinical status of the condition or diagnosis.",
          "valueSet": "http://hl7.org/fhir/ValueSet/condition-clinical|4.0.1"
        },
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.status"
          },
          {
            "identity": "w5",
            "map": "FiveWs.status"
          },
          {
            "identity": "sct-concept",
            "map": "< 303105007 |Disease phases|"
          },
          {
            "identity": "v2",
            "map": "PRB-14"
          },
          {
            "identity": "rim",
            "map": "Observation ACT\n.inboundRelationship[typeCode=COMP].source[classCode=OBS, code=\"clinicalStatus\", moodCode=EVN].value"
          }
        ]
      },
      {
        "id": "Condition.verificationStatus",
        "path": "Condition.verificationStatus",
        "short": "unconfirmed | provisional | differential | confirmed | refuted | entered-in-error",
        "definition": "The verification status to support the clinical status of the condition.",
        "comment": "verificationStatus 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.",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "con-3",
          "con-5"
        ],
        "isModifier": true,
        "isModifierReason": "This element is labeled as a modifier because the status contains the code refuted and entered-in-error that mark the Condition as not currently valid.",
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ConditionVerificationStatus"
            }
          ],
          "strength": "required",
          "description": "The verification status to support or decline the clinical status of the condition or diagnosis.",
          "valueSet": "http://hl7.org/fhir/ValueSet/condition-ver-status|4.0.1"
        },
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.status"
          },
          {
            "identity": "w5",
            "map": "FiveWs.status"
          },
          {
            "identity": "sct-concept",
            "map": "< 410514004 |Finding context value|"
          },
          {
            "identity": "v2",
            "map": "PRB-13"
          },
          {
            "identity": "rim",
            "map": "Observation ACT\n.inboundRelationship[typeCode=COMP].source[classCode=OBS, code=\"verificationStatus\", moodCode=EVN].value"
          },
          {
            "identity": "sct-attr",
            "map": "408729009"
          }
        ]
      },
      {
        "id": "Condition.category",
        "path": "Condition.category",
        "short": "problem-list-item | encounter-diagnosis",
        "definition": "A category assigned to the condition.",
        "comment": "The categorization is often highly contextual and may appear poorly differentiated or not very useful in other contexts.",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ConditionCategory"
            }
          ],
          "strength": "extensible",
          "description": "A category assigned to the condition.",
          "valueSet": "http://hl7.org/fhir/ValueSet/condition-category"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.class"
          },
          {
            "identity": "sct-concept",
            "map": "< 404684003 |Clinical finding|"
          },
          {
            "identity": "v2",
            "map": "'problem' if from PRB-3. 'diagnosis' if from DG1 segment in PV1 message"
          },
          {
            "identity": "rim",
            "map": ".code"
          }
        ]
      },
      {
        "id": "Condition.severity",
        "path": "Condition.severity",
        "short": "Subjective severity of condition",
        "definition": "A subjective assessment of the severity of the condition as evaluated by the clinician.",
        "comment": "Coding of the severity with a terminology is preferred, where possible.",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ConditionSeverity"
            }
          ],
          "strength": "preferred",
          "description": "A subjective assessment of the severity of the condition as evaluated by the clinician.",
          "valueSet": "http://hl7.org/fhir/ValueSet/condition-severity"
        },
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.grade"
          },
          {
            "identity": "sct-concept",
            "map": "< 272141005 |Severities|"
          },
          {
            "identity": "v2",
            "map": "PRB-26 / ABS-3"
          },
          {
            "identity": "rim",
            "map": "Can be pre/post-coordinated into value.  Or ./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"severity\"].value"
          },
          {
            "identity": "sct-attr",
            "map": "246112005"
          }
        ]
      },
      {
        "id": "Condition.code",
        "path": "Condition.code",
        "short": "Identification of the condition, problem or diagnosis",
        "definition": "Identification of the condition, problem or diagnosis.",
        "requirements": "0..1 to account for primarily narrative only resources.",
        "alias": [
          "type"
        ],
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ConditionKind"
            }
          ],
          "strength": "example",
          "description": "Identification of the condition or diagnosis.",
          "valueSet": "http://hl7.org/fhir/ValueSet/condition-code"
        },
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.code"
          },
          {
            "identity": "w5",
            "map": "FiveWs.what[x]"
          },
          {
            "identity": "sct-concept",
            "map": "code 246090004 |Associated finding| (< 404684003 |Clinical finding| MINUS\n<< 420134006 |Propensity to adverse reactions| MINUS \n<< 473010000 |Hypersensitivity condition| MINUS \n<< 79899007 |Drug interaction| MINUS\n<< 69449002 |Drug action| MINUS \n<< 441742003 |Evaluation finding| MINUS \n<< 307824009 |Administrative status| MINUS \n<< 385356007 |Tumor stage finding|) \nOR < 413350009 |Finding with explicit context|\nOR < 272379006 |Event|"
          },
          {
            "identity": "v2",
            "map": "PRB-3"
          },
          {
            "identity": "rim",
            "map": ".value"
          },
          {
            "identity": "sct-attr",
            "map": "246090004"
          }
        ]
      },
      {
        "id": "Condition.bodySite",
        "path": "Condition.bodySite",
        "short": "Anatomical location, if relevant",
        "definition": "The anatomical location where this condition manifests itself.",
        "comment": "Only used if not implicit in code found in Condition.code. If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [bodySite](extension-bodysite.html).  May be a summary code, or a reference to a very precise definition of the location, or both.",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "BodySite"
            }
          ],
          "strength": "example",
          "description": "Codes describing anatomical locations. May include laterality.",
          "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
        },
        "mapping": [
          {
            "identity": "sct-concept",
            "map": "< 442083009  |Anatomical or acquired body structure|"
          },
          {
            "identity": "rim",
            "map": ".targetBodySiteCode"
          },
          {
            "identity": "sct-attr",
            "map": "363698007"
          }
        ]
      },
      {
        "id": "Condition.subject",
        "path": "Condition.subject",
        "short": "Who has the condition?",
        "definition": "Indicates the patient or group who the condition record is associated with.",
        "requirements": "Group is typically used for veterinary or public health use cases.",
        "alias": [
          "patient"
        ],
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://hl7.org/fhir/StructureDefinition/Group"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.subject"
          },
          {
            "identity": "w5",
            "map": "FiveWs.subject[x]"
          },
          {
            "identity": "v2",
            "map": "PID-3"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=SBJ].role[classCode=PAT]"
          },
          {
            "identity": "w5",
            "map": "FiveWs.subject"
          }
        ]
      },
      {
        "id": "Condition.encounter",
        "path": "Condition.encounter",
        "short": "Encounter created as part of",
        "definition": "The Encounter during which this Condition was created or to which the creation of this record is tightly associated.",
        "comment": "This 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\".",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Encounter"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.context"
          },
          {
            "identity": "w5",
            "map": "FiveWs.context"
          },
          {
            "identity": "v2",
            "map": "PV1-19 (+PV1-54)"
          },
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
          }
        ]
      },
      {
        "id": "Condition.onset[x]",
        "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.",
        "comment": "Age is generally used when the patient reports an age at which the Condition began to occur.",
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          },
          {
            "code": "Age"
          },
          {
            "code": "Period"
          },
          {
            "code": "Range"
          },
          {
            "code": "string"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.occurrence[x]"
          },
          {
            "identity": "w5",
            "map": "FiveWs.init"
          },
          {
            "identity": "v2",
            "map": "PRB-16"
          },
          {
            "identity": "rim",
            "map": ".effectiveTime.low or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"age at onset\"].value"
          }
        ]
      },
      {
        "id": "Condition.abatement[x]",
        "path": "Condition.abatement[x]",
        "short": "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.",
        "comment": "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.  If 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.  When abatementString exists, it implies the condition is abated.",
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          },
          {
            "code": "Age"
          },
          {
            "code": "Period"
          },
          {
            "code": "Range"
          },
          {
            "code": "string"
          }
        ],
        "condition": [
          "con-4"
        ],
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.done[x]"
          },
          {
            "identity": "rim",
            "map": ".effectiveTime.high or .inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"age at remission\"].value or .inboundRelationship[typeCode=SUBJ]source[classCode=CONC, moodCode=EVN].status=completed"
          }
        ]
      },
      {
        "id": "Condition.recordedDate",
        "path": "Condition.recordedDate",
        "short": "Date record was first recorded",
        "definition": "The recordedDate represents when this particular Condition record was created in the system, which is often a system-generated date.",
        "max": "1",
        "type": [
          {
            "code": "dateTime"
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.recorded"
          },
          {
            "identity": "v2",
            "map": "REL-11"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=AUT].time"
          }
        ]
      },
      {
        "id": "Condition.recorder",
        "path": "Condition.recorder",
        "short": "Who recorded the condition",
        "definition": "Individual who recorded the record and takes responsibility for its content.",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.author"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=AUT].role"
          }
        ]
      },
      {
        "id": "Condition.asserter",
        "path": "Condition.asserter",
        "short": "Person who asserts this condition",
        "definition": "Individual who is making the condition statement.",
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
              "http://hl7.org/fhir/StructureDefinition/Patient",
              "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
            ]
          }
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.source"
          },
          {
            "identity": "v2",
            "map": "REL-7.1 identifier + REL-7.12 type code"
          },
          {
            "identity": "rim",
            "map": ".participation[typeCode=INF].role"
          }
        ]
      },
      {
        "id": "Condition.stage",
        "path": "Condition.stage",
        "short": "Stage/grade, usually assessed formally",
        "definition": "Clinical stage or grade of a condition. May include formal severity assessments.",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "con-1",
            "severity": "error",
            "human": "Stage SHALL have summary or assessment",
            "expression": "summary.exists() or assessment.exists()",
            "xpath": "exists(f:summary) or exists(f:assessment)",
            "source": "http://hl7.org/fhir/StructureDefinition/Condition"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"stage/grade\"]"
          }
        ]
      },
      {
        "id": "Condition.stage.summary",
        "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.",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "con-1"
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ConditionStage"
            }
          ],
          "strength": "example",
          "description": "Codes describing condition stages (e.g. Cancer stages).",
          "valueSet": "http://hl7.org/fhir/ValueSet/condition-stage"
        },
        "mapping": [
          {
            "identity": "sct-concept",
            "map": "< 254291000 |Staging and scales|"
          },
          {
            "identity": "v2",
            "map": "PRB-14"
          },
          {
            "identity": "rim",
            "map": ".value"
          }
        ]
      },
      {
        "id": "Condition.stage.assessment",
        "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.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/ClinicalImpression",
              "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
              "http://hl7.org/fhir/StructureDefinition/Observation"
            ]
          }
        ],
        "condition": [
          "con-1"
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".self"
          }
        ]
      },
      {
        "id": "Condition.stage.type",
        "path": "Condition.stage.type",
        "short": "Kind of staging",
        "definition": "The kind of staging, such as pathological or clinical staging.",
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ConditionStageType"
            }
          ],
          "strength": "example",
          "description": "Codes describing the kind of condition staging (e.g. clinical or pathological).",
          "valueSet": "http://hl7.org/fhir/ValueSet/condition-stage-type"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "./inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"stage type\"]"
          }
        ]
      },
      {
        "id": "Condition.evidence",
        "path": "Condition.evidence",
        "short": "Supporting evidence",
        "definition": "Supporting evidence / manifestations that are the basis of the Condition's verification status, such as evidence that confirmed or refuted the condition.",
        "comment": "The evidence may be a simple list of coded symptoms/manifestations, or references to observations or formal assessments, or both.",
        "type": [
          {
            "code": "BackboneElement"
          }
        ],
        "constraint": [
          {
            "key": "con-2",
            "severity": "error",
            "human": "evidence SHALL have code or details",
            "expression": "code.exists() or detail.exists()",
            "xpath": "exists(f:code) or exists(f:detail)",
            "source": "http://hl7.org/fhir/StructureDefinition/Condition"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": ".outboundRelationship[typeCode=SPRT].target[classCode=OBS, moodCode=EVN]"
          }
        ]
      },
      {
        "id": "Condition.evidence.code",
        "path": "Condition.evidence.code",
        "short": "Manifestation/symptom",
        "definition": "A manifestation or symptom that led to the recording of this condition.",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ],
        "condition": [
          "con-2"
        ],
        "isSummary": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ManifestationOrSymptom"
            }
          ],
          "strength": "example",
          "description": "Codes that describe the manifestation or symptoms of a condition.",
          "valueSet": "http://hl7.org/fhir/ValueSet/manifestation-or-symptom"
        },
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.reasonCode"
          },
          {
            "identity": "w5",
            "map": "FiveWs.why[x]"
          },
          {
            "identity": "sct-concept",
            "map": "< 404684003 |Clinical finding|"
          },
          {
            "identity": "rim",
            "map": "[code=\"diagnosis\"].value"
          }
        ]
      },
      {
        "id": "Condition.evidence.detail",
        "path": "Condition.evidence.detail",
        "short": "Supporting information found elsewhere",
        "definition": "Links to other relevant information, including pathology reports.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Resource"
            ]
          }
        ],
        "condition": [
          "con-2"
        ],
        "isSummary": true,
        "mapping": [
          {
            "identity": "w5",
            "map": "FiveWs.why[x]"
          },
          {
            "identity": "rim",
            "map": ".self"
          }
        ]
      },
      {
        "id": "Condition.note",
        "path": "Condition.note",
        "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.",
        "type": [
          {
            "code": "Annotation"
          }
        ],
        "mapping": [
          {
            "identity": "workflow",
            "map": "Event.note"
          },
          {
            "identity": "v2",
            "map": "NTE child of PRB"
          },
          {
            "identity": "rim",
            "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
          }
        ]
      }
    ]
  }
}