### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/Condition.json
### ----------------------------------------------------
### -- Chunk 9 of 9
"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.0"
				},
				"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.",
				"min" : 0,
				"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.0"
				},
				"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.",
				"min" : 0,
				"max" : "*",
				"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.",
				"min" : 0,
				"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"],
				"min" : 0,
				"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.",
				"min" : 0,
				"max" : "*",
				"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\".",
				"min" : 0,
				"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.",
				"min" : 0,
				"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.",
				"min" : 0,
				"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.",
				"min" : 0,
				"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.",
				"min" : 0,
				"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.",
				"min" : 0,
				"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.",
				"min" : 0,
				"max" : "*",
				"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)"
				}],
				"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.",
				"min" : 0,
				"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.",
				"min" : 0,
				"max" : "*",
				"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.",
				"min" : 0,
				"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.",
				"min" : 0,
				"max" : "*",
				"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)"
				}],
				"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.",
				"min" : 0,
				"max" : "*",
				"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.",
				"min" : 0,
				"max" : "*",
				"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.",
				"min" : 0,
				"max" : "*",
				"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"
					}]
			}]
	}
}


