---input---
--
-- Example of an openEHR Archetype, written in the Archetype Definition Language (ADL)
-- Definition available here: http://www.openehr.org/releases/trunk/architecture/am/adl2.pdf
-- Author: derived from the openEHR-EHR-EVALUATION.adverse_reaction.v1 archetype at http://www.openEHR.org/ckm
--

archetype (adl_version=2.0.5; rm_release=1.0.2; generated)
	openEHR-EHR-EVALUATION.adverse_reaction.v1.0.0

language
	original_language = <[ISO_639-1::en]>

description
	lifecycle_state = <"unmanaged">
	original_author = <
		["name"] = <"Heather Leslie">
		["organisation"] = <"Ocean Informatics">
		["email"] = <"heather.leslie@oceaninformatics.com">
		["date"] = <"2010-11-08">
	>
	copyright = <"© openEHR Foundation">
	details = <
		["en"] = <
			language = <[ISO_639-1::en]>
			purpose = <"To record information about any harmful...">
			use = <"Use to record all information about the presence ...">
			keywords = <"reaction", "allergy", "allergic", "adverse">
			misuse = <"Not to be used for recording the absence (or ...">
		>
	>
	other_contributors = <"Jane Doe, Australia">
	other_details = <
		["references"] = <"Adverse Reaction, draft archetype, ...">
		["MD5-CAM-1.0.1"] = <"260699D2EFDE4F7C7BC3C6C501A51A61">
	>

definition
	EVALUATION[id1] matches {	-- Adverse Reaction
		data matches {
			ITEM_TREE[id2] matches {
				items cardinality matches {1..*; unordered} matches {
					ELEMENT[id3] matches {	-- Substance/Agent
						value matches {
							DV_TEXT[id51] 
						}
					}
					ELEMENT[id5] occurrences matches {0..1} matches {	-- Absolute Contraindication?
						value matches {
							DV_BOOLEAN[id52] matches {
								value matches {True}
							}
						}
					}
					ELEMENT[id50] occurrences matches {0..1} matches {	-- Future Use
						value matches {
							DV_TEXT[id53] 
						}
					}
					ELEMENT[id7] occurrences matches {0..1} matches {	-- Overall Comment
						value matches {
							DV_TEXT[id54] 
						}
					}
					CLUSTER[id10] matches {	-- Reaction Event
						items matches {
							ELEMENT[id11] occurrences matches {0..1} matches {	-- Specific Substance/Agent
								value matches {
									DV_TEXT[id55] 
								}
							}
							ELEMENT[id12] matches {	-- Manifestation
								value matches {
									DV_TEXT[id56] 
								}
							}
							ELEMENT[id17] occurrences matches {0..1} matches {	-- Reaction Type
								value matches {
									DV_TEXT[id57] 
								}
							}
							ELEMENT[id22] occurrences matches {0..1} matches {	-- Certainty
								value matches {
									DV_CODED_TEXT[id58] matches {
										defining_code matches {[ac1]}		-- Certainty (synthesised)
									}
								}
							}
							ELEMENT[id13] occurrences matches {0..1} matches {	-- Reaction Description
								value matches {
									DV_TEXT[id59] 
								}
							}
							ELEMENT[id28] occurrences matches {0..1} matches {	-- Onset of Reaction
								value matches {
									DV_DATE_TIME[id60] 
								}
							}
							ELEMENT[id29] occurrences matches {0..1} matches {	-- Duration of Reaction
								value matches {
									DV_DURATION[id61] 
								}
							}
							allow_archetype CLUSTER[id30] matches {	-- Additional Reaction Detail
								include
									archetype_id/value matches {/openEHR-EHR-CLUSTER\.anatomical_location(-a-zA-Z0-9_]+)*\.v1/}
							}
							ELEMENT[id19] occurrences matches {0..1} matches {	-- Exposure Description
								value matches {
									DV_TEXT[id62] 
								}
							}
							ELEMENT[id21] occurrences matches {0..1} matches {	-- Earliest Exposure
								value matches {
									DV_DATE_TIME[id63] 
								}
							}
							ELEMENT[id26] occurrences matches {0..1} matches {	-- Duration of Exposure
								value matches {
									DV_DURATION[id64] 
								}
							}
							allow_archetype CLUSTER[id20] matches {	-- Additional Exposure Detail
								include
									archetype_id/value matches {/openEHR-EHR-CLUSTER\.amount(-a-zA-Z0-9_]+)*\.v1|openEHR-EHR-CLUSTER\.medication_admin(-a-zA-Z0-9_]+)*\.v1|openEHR-EHR-CLUSTER\.timing(-a-zA-Z0-9_]+)*\.v1/}
							}
							ELEMENT[id41] occurrences matches {0..1} matches {	-- Clinical Management Description
								value matches {
									DV_TEXT[id65] 
								}
							}
							ELEMENT[id32] matches {	-- Multimedia
								value matches {
									DV_MULTIMEDIA[id66] matches {
										media_type 
									}
								}
							}
							allow_archetype CLUSTER[id42] matches {	-- Reporting Details
								include
									archetype_id/value matches {/.*/}
							}
							ELEMENT[id33] occurrences matches {0..1} matches {	-- Reaction Comment
								value matches {
									DV_TEXT[id67] 
								}
							}
						}
					}
				}
			}
		}
		protocol matches {
			ITEM_TREE[id43] matches {
				items matches {
					ELEMENT[id45] occurrences matches {0..1} matches {	-- Reaction Reported?
						value matches {
							DV_BOOLEAN[id68] matches {
								value matches {True, False}
							}
						}
					}
					ELEMENT[id49] occurrences matches {0..1} matches {	-- Report Comment
						value matches {
							DV_TEXT[id69] 
						}
					}
					ELEMENT[id46] matches {	-- Adverse Reaction Report
						value matches {
							DV_URI[id70] 
						}
					}
					ELEMENT[id48] occurrences matches {0..1} matches {	-- Supporting Clinical Record Information
						value matches {
							DV_EHR_URI[id71] 
						}
					}
				}
			}
		}
	}

terminology
	term_definitions = <
		["en"] = <
			["id1"] = <
				text = <"Adverse Reaction">
				description = <"A harmful or undesirable, unexpected effect associated with exposure to any substance or agent, including food, plants, animals, venom from animal stings, or a medication at therapeutic or sub-therapeutic doses.">
			>
			["id3"] = <
				text = <"Substance/Agent">
				description = <"Identification of a substance, agent, or a class of substance, that is considered to be responsible for the Adverse Reaction.">
			>
			["id5"] = <
				text = <"Absolute Contraindication?">
				description = <"Is administration of this Substance/Agent absolutely contraindicated in this individual?">
			>
			["id7"] = <
				text = <"Overall Comment">
				description = <"Additional narrative about the Adverse Reaction as a whole, not captured in other fields.">
			>
			["id10"] = <
				text = <"Reaction Event">
				description = <"Details about each Adverse Reaction Event.">
			>
			["id11"] = <
				text = <"Specific Substance/Agent">
				description = <"Specific identification of the actual Substance/Agent considered to be responsible for the Adverse Reaction event.">
			>
			["id12"] = <
				text = <"Manifestation">
				description = <"Clinical manifestation of the Adverse Reaction expressed as a single word, phrase or brief description, e.g. nausea or rash.">
			>
			["id13"] = <
				text = <"Reaction Description">
				description = <"Narrative description of the Adverse Reaction.">
			>
			["id17"] = <
				text = <"Reaction Type">
				description = <"The type of Adverse Reaction as determined by the clinician.">
			>
			["id19"] = <
				text = <"Exposure Description">
				description = <"Description about exposure to the Substance/Agent.">
			>
			["id20"] = <
				text = <"Additional Exposure Detail">
				description = <"Additional detail about exposure/s for this Adverse Reaction event, including structured medication amount/frequency/route information.">
			>
			["id21"] = <
				text = <"Earliest Exposure">
				description = <"Record of the date and/or time of the earliest or initial exposure to the Substance/Agent.">
			>
			["id22"] = <
				text = <"Certainty">
				description = <"Degree of certainty, as assessed by a clinician, that the specific Substance/Agent was the cause of the Adverse Reaction.">
			>
			["at23"] = <
				text = <"Suspected">
				description = <"Possibly the causative agent.">
			>
			["at24"] = <
				text = <"Probable">
				description = <"Likely to be the causative agent, but not confirmed by testing or rechallenge.">
			>
			["at25"] = <
				text = <"Confirmed">
				description = <"Confirmed as the causative agent, by testing or rechallenge.">
			>
			["id26"] = <
				text = <"Duration of Exposure">
				description = <"The amount of time of exposure to the Substance/Agent.">
			>
			["id28"] = <
				text = <"Onset of Reaction">
				description = <"Record of the date and/or time of the onset of the Adverse Reaction.">
			>
			["id29"] = <
				text = <"Duration of Reaction">
				description = <"The amount of time that the Adverse Reaction was present.">
			>
			["id30"] = <
				text = <"Additional Reaction Detail">
				description = <"Additional detail about the Adverse Reaction, including anatomical location.">
			>
			["id32"] = <
				text = <"Multimedia">
				description = <"Inclusion of any multimedia file to support the recording of the Adverse Reaction event.">
			>
			["id33"] = <
				text = <"Reaction Comment">
				description = <"Additional narrative about the Adverse Reaction event not captured in other fields.">
			>
			["id41"] = <
				text = <"Clinical Management Description">
				description = <"Narrative description of the clinical management provided.">
			>
			["id42"] = <
				text = <"Reporting Details">
				description = <"Further details required for reporting to regulatory bodies.">
			>
			["id45"] = <
				text = <"Reaction Reported?">
				description = <"Was the Adverse Reaction reported to a regulatory body?">
			>
			["id46"] = <
				text = <"Adverse Reaction Report">
				description = <"Link to an Adverse Reaction Report sent to a regulatory body.">
			>
			["id48"] = <
				text = <"Supporting Clinical Record Information">
				description = <"Link to further information about the presentation and findings that exist elsewhere in the health record, including allergy test reports.">
			>
			["id49"] = <
				text = <"Report Comment">
				description = <"Additional narrative about the Adverse Reaction Report, including the reason for non-reporting, if required.">
			>
			["id50"] = <
				text = <"Future Use">
				description = <"Narrative description of clinician instructions or advice related to future exposure to, or administration of, the Substance/Agent.">
			>
			["ac1"] = <
				text = <"Certainty (synthesised)">
				description = <"Degree of certainty, as assessed by a clinician, that the specific Substance/Agent was the cause of the Adverse Reaction. (synthesised)">
			>
		>
	>
	value_sets = <
		["ac1"] = <
			id = <"ac1">
			members = <"at23", "at24", "at25">
		>
	>


---tokens---
'--'          Comment
'\n'          Text

'-- Example of an openEHR Archetype, written in the Archetype Definition Language (ADL)' Comment
'\n'          Text

'-- Definition available here: http://www.openehr.org/releases/trunk/architecture/am/adl2.pdf' Comment
'\n'          Text

'-- Author: derived from the openEHR-EHR-EVALUATION.adverse_reaction.v1 archetype at http://www.openEHR.org/ckm' Comment
'\n'          Text

'--'          Comment
'\n\n'        Text

'archetype'   Generic.Heading
' ('          Punctuation
'adl_version' Name.Class
'='           Operator
'2.0.5'       Literal
';'           Punctuation
' '           Text
'rm_release'  Name.Class
'='           Operator
'1.0.2'       Literal
';'           Punctuation
' '           Text
'generated'   Name.Class
')'           Punctuation
'\n'          Text

'\topenEHR-EHR-EVALUATION.adverse_reaction.v1.0.0' Name.Decorator
'\n\n'        Text

'language\n'  Generic.Heading

'\t'          Text
'original_language' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'['           Punctuation
'ISO_639-1'   Name.Decorator
'::'          Punctuation
'en'          Name.Decorator
']'           Punctuation
'>'           Punctuation
'\n'          Text

'\n'          Text

'description\n' Generic.Heading

'\t'          Text
'lifecycle_state' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'unmanaged'   Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t'          Text
'original_author' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t'        Text
'['           Punctuation
'"'           Literal.String
'name'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Heather Leslie' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t'        Text
'['           Punctuation
'"'           Literal.String
'organisation' Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Ocean Informatics' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t'        Text
'['           Punctuation
'"'           Literal.String
'email'       Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'heather.leslie@oceaninformatics.com' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t'        Text
'['           Punctuation
'"'           Literal.String
'date'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'2010-11-08'  Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t'          Text
'>'           Punctuation
'\n'          Text

'\t'          Text
'copyright'   Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'© openEHR Foundation' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t'          Text
'details'     Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t'        Text
'['           Punctuation
'"'           Literal.String
'en'          Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t'      Text
'language'    Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'['           Punctuation
'ISO_639-1'   Name.Decorator
'::'          Punctuation
'en'          Name.Decorator
']'           Punctuation
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'purpose'     Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'To record information about any harmful...' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'use'         Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Use to record all information about the presence ...' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'keywords'    Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'reaction'    Literal.String
'"'           Literal.String
','           Punctuation
' '           Text
'"'           Literal.String
'allergy'     Literal.String
'"'           Literal.String
','           Punctuation
' '           Text
'"'           Literal.String
'allergic'    Literal.String
'"'           Literal.String
','           Punctuation
' '           Text
'"'           Literal.String
'adverse'     Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'misuse'      Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Not to be used for recording the absence (or ...' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t'        Text
'>'           Punctuation
'\n'          Text

'\t'          Text
'>'           Punctuation
'\n'          Text

'\t'          Text
'other_contributors' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Jane Doe, Australia' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t'          Text
'other_details' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t'        Text
'['           Punctuation
'"'           Literal.String
'references'  Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Adverse Reaction, draft archetype, ...' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t'        Text
'['           Punctuation
'"'           Literal.String
'MD5-CAM-1.0.1' Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'260699D2EFDE4F7C7BC3C6C501A51A61' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t'          Text
'>'           Punctuation
'\n'          Text

'\n'          Text

'definition\n' Generic.Heading

'\t'          Text
'EVALUATION'  Name.Class
'['           Punctuation
'id1'         Name.Decorator
']'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Adverse Reaction' Comment
'\n'          Text

'\t\t'        Text
'data'        Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t'      Text
'ITEM_TREE'   Name.Class
'['           Punctuation
'id2'         Name.Decorator
']'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'items'       Name.Class
' '           Text
'cardinality ' Keyword.Type
'matches '    Operator
'{'           Punctuation
'1..*'        Literal.Number
'; unordered' Literal.Number
'}'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t'  Text
'ELEMENT'     Name.Class
'['           Punctuation
'id3'         Name.Decorator
']'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Substance/Agent' Comment
'\n'          Text

'\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'DV_TEXT'     Name.Class
'['           Punctuation
'id51'        Name.Decorator
']'           Punctuation
' \n'         Text

'\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t'  Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t'  Text
'ELEMENT'     Name.Class
'['           Punctuation
'id5'         Name.Decorator
']'           Punctuation
' '           Text
'occurrences ' Keyword.Type
'matches '    Operator
'{'           Punctuation
'0..1'        Literal.Number
'}'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Absolute Contraindication?' Comment
'\n'          Text

'\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'DV_BOOLEAN'  Name.Class
'['           Punctuation
'id52'        Name.Decorator
']'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'True'        Literal
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t'  Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t'  Text
'ELEMENT'     Name.Class
'['           Punctuation
'id50'        Name.Decorator
']'           Punctuation
' '           Text
'occurrences ' Keyword.Type
'matches '    Operator
'{'           Punctuation
'0..1'        Literal.Number
'}'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Future Use' Comment
'\n'          Text

'\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'DV_TEXT'     Name.Class
'['           Punctuation
'id53'        Name.Decorator
']'           Punctuation
' \n'         Text

'\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t'  Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t'  Text
'ELEMENT'     Name.Class
'['           Punctuation
'id7'         Name.Decorator
']'           Punctuation
' '           Text
'occurrences ' Keyword.Type
'matches '    Operator
'{'           Punctuation
'0..1'        Literal.Number
'}'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Overall Comment' Comment
'\n'          Text

'\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'DV_TEXT'     Name.Class
'['           Punctuation
'id54'        Name.Decorator
']'           Punctuation
' \n'         Text

'\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t'  Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t'  Text
'CLUSTER'     Name.Class
'['           Punctuation
'id10'        Name.Decorator
']'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Reaction Event' Comment
'\n'          Text

'\t\t\t\t\t\t' Text
'items'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'ELEMENT'     Name.Class
'['           Punctuation
'id11'        Name.Decorator
']'           Punctuation
' '           Text
'occurrences ' Keyword.Type
'matches '    Operator
'{'           Punctuation
'0..1'        Literal.Number
'}'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Specific Substance/Agent' Comment
'\n'          Text

'\t\t\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t\t\t' Text
'DV_TEXT'     Name.Class
'['           Punctuation
'id55'        Name.Decorator
']'           Punctuation
' \n'         Text

'\t\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'ELEMENT'     Name.Class
'['           Punctuation
'id12'        Name.Decorator
']'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Manifestation' Comment
'\n'          Text

'\t\t\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t\t\t' Text
'DV_TEXT'     Name.Class
'['           Punctuation
'id56'        Name.Decorator
']'           Punctuation
' \n'         Text

'\t\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'ELEMENT'     Name.Class
'['           Punctuation
'id17'        Name.Decorator
']'           Punctuation
' '           Text
'occurrences ' Keyword.Type
'matches '    Operator
'{'           Punctuation
'0..1'        Literal.Number
'}'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Reaction Type' Comment
'\n'          Text

'\t\t\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t\t\t' Text
'DV_TEXT'     Name.Class
'['           Punctuation
'id57'        Name.Decorator
']'           Punctuation
' \n'         Text

'\t\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'ELEMENT'     Name.Class
'['           Punctuation
'id22'        Name.Decorator
']'           Punctuation
' '           Text
'occurrences ' Keyword.Type
'matches '    Operator
'{'           Punctuation
'0..1'        Literal.Number
'}'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Certainty' Comment
'\n'          Text

'\t\t\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t\t\t' Text
'DV_CODED_TEXT' Name.Class
'['           Punctuation
'id58'        Name.Decorator
']'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t\t\t\t' Text
'defining_code' Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'['           Punctuation
'ac1'         Name.Decorator
']'           Punctuation
'}'           Punctuation
'\t\t'        Text
'-- Certainty (synthesised)' Comment
'\n'          Text

'\t\t\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'ELEMENT'     Name.Class
'['           Punctuation
'id13'        Name.Decorator
']'           Punctuation
' '           Text
'occurrences ' Keyword.Type
'matches '    Operator
'{'           Punctuation
'0..1'        Literal.Number
'}'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Reaction Description' Comment
'\n'          Text

'\t\t\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t\t\t' Text
'DV_TEXT'     Name.Class
'['           Punctuation
'id59'        Name.Decorator
']'           Punctuation
' \n'         Text

'\t\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'ELEMENT'     Name.Class
'['           Punctuation
'id28'        Name.Decorator
']'           Punctuation
' '           Text
'occurrences ' Keyword.Type
'matches '    Operator
'{'           Punctuation
'0..1'        Literal.Number
'}'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Onset of Reaction' Comment
'\n'          Text

'\t\t\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t\t\t' Text
'DV_DATE_TIME' Name.Class
'['           Punctuation
'id60'        Name.Decorator
']'           Punctuation
' \n'         Text

'\t\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'ELEMENT'     Name.Class
'['           Punctuation
'id29'        Name.Decorator
']'           Punctuation
' '           Text
'occurrences ' Keyword.Type
'matches '    Operator
'{'           Punctuation
'0..1'        Literal.Number
'}'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Duration of Reaction' Comment
'\n'          Text

'\t\t\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t\t\t' Text
'DV_DURATION' Name.Class
'['           Punctuation
'id61'        Name.Decorator
']'           Punctuation
' \n'         Text

'\t\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'allow_archetype ' Keyword.Type
'CLUSTER'     Name.Class
'['           Punctuation
'id30'        Name.Decorator
']'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Additional Reaction Detail' Comment
'\n'          Text

'\t\t\t\t\t\t\t\t' Text
'include\n'   Keyword.Type

'\t\t\t\t\t\t\t\t\t' Text
'archetype_id' Name.Class
'/'           Punctuation
'value'       Name.Class
' '           Punctuation
'matches '    Operator
'{'           Punctuation
'/openEHR-EHR-CLUSTER\\.anatomical_location(-a-zA-Z0-9_]+)*\\.v1/' Literal.String.Regex
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'ELEMENT'     Name.Class
'['           Punctuation
'id19'        Name.Decorator
']'           Punctuation
' '           Text
'occurrences ' Keyword.Type
'matches '    Operator
'{'           Punctuation
'0..1'        Literal.Number
'}'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Exposure Description' Comment
'\n'          Text

'\t\t\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t\t\t' Text
'DV_TEXT'     Name.Class
'['           Punctuation
'id62'        Name.Decorator
']'           Punctuation
' \n'         Text

'\t\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'ELEMENT'     Name.Class
'['           Punctuation
'id21'        Name.Decorator
']'           Punctuation
' '           Text
'occurrences ' Keyword.Type
'matches '    Operator
'{'           Punctuation
'0..1'        Literal.Number
'}'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Earliest Exposure' Comment
'\n'          Text

'\t\t\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t\t\t' Text
'DV_DATE_TIME' Name.Class
'['           Punctuation
'id63'        Name.Decorator
']'           Punctuation
' \n'         Text

'\t\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'ELEMENT'     Name.Class
'['           Punctuation
'id26'        Name.Decorator
']'           Punctuation
' '           Text
'occurrences ' Keyword.Type
'matches '    Operator
'{'           Punctuation
'0..1'        Literal.Number
'}'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Duration of Exposure' Comment
'\n'          Text

'\t\t\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t\t\t' Text
'DV_DURATION' Name.Class
'['           Punctuation
'id64'        Name.Decorator
']'           Punctuation
' \n'         Text

'\t\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'allow_archetype ' Keyword.Type
'CLUSTER'     Name.Class
'['           Punctuation
'id20'        Name.Decorator
']'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Additional Exposure Detail' Comment
'\n'          Text

'\t\t\t\t\t\t\t\t' Text
'include\n'   Keyword.Type

'\t\t\t\t\t\t\t\t\t' Text
'archetype_id' Name.Class
'/'           Punctuation
'value'       Name.Class
' '           Punctuation
'matches '    Operator
'{'           Punctuation
'/openEHR-EHR-CLUSTER\\.amount(-a-zA-Z0-9_]+)*\\.v1|openEHR-EHR-CLUSTER\\.medication_admin(-a-zA-Z0-9_]+)*\\.v1|openEHR-EHR-CLUSTER\\.timing(-a-zA-Z0-9_]+)*\\.v1/' Literal.String.Regex
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'ELEMENT'     Name.Class
'['           Punctuation
'id41'        Name.Decorator
']'           Punctuation
' '           Text
'occurrences ' Keyword.Type
'matches '    Operator
'{'           Punctuation
'0..1'        Literal.Number
'}'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Clinical Management Description' Comment
'\n'          Text

'\t\t\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t\t\t' Text
'DV_TEXT'     Name.Class
'['           Punctuation
'id65'        Name.Decorator
']'           Punctuation
' \n'         Text

'\t\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'ELEMENT'     Name.Class
'['           Punctuation
'id32'        Name.Decorator
']'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Multimedia' Comment
'\n'          Text

'\t\t\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t\t\t' Text
'DV_MULTIMEDIA' Name.Class
'['           Punctuation
'id66'        Name.Decorator
']'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t\t\t\t' Text
'media_type'  Name.Class
' \n'         Text

'\t\t\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'allow_archetype ' Keyword.Type
'CLUSTER'     Name.Class
'['           Punctuation
'id42'        Name.Decorator
']'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Reporting Details' Comment
'\n'          Text

'\t\t\t\t\t\t\t\t' Text
'include\n'   Keyword.Type

'\t\t\t\t\t\t\t\t\t' Text
'archetype_id' Name.Class
'/'           Punctuation
'value'       Name.Class
' '           Punctuation
'matches '    Operator
'{'           Punctuation
'/.*/'        Literal.String.Regex
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'ELEMENT'     Name.Class
'['           Punctuation
'id33'        Name.Decorator
']'           Punctuation
' '           Text
'occurrences ' Keyword.Type
'matches '    Operator
'{'           Punctuation
'0..1'        Literal.Number
'}'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Reaction Comment' Comment
'\n'          Text

'\t\t\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t\t\t' Text
'DV_TEXT'     Name.Class
'['           Punctuation
'id67'        Name.Decorator
']'           Punctuation
' \n'         Text

'\t\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t'  Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'}'           Punctuation
'\n'          Text

'\t\t\t'      Text
'}'           Punctuation
'\n'          Text

'\t\t'        Text
'}'           Punctuation
'\n'          Text

'\t\t'        Text
'protocol'    Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t'      Text
'ITEM_TREE'   Name.Class
'['           Punctuation
'id43'        Name.Decorator
']'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'items'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t'  Text
'ELEMENT'     Name.Class
'['           Punctuation
'id45'        Name.Decorator
']'           Punctuation
' '           Text
'occurrences ' Keyword.Type
'matches '    Operator
'{'           Punctuation
'0..1'        Literal.Number
'}'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Reaction Reported?' Comment
'\n'          Text

'\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'DV_BOOLEAN'  Name.Class
'['           Punctuation
'id68'        Name.Decorator
']'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'True'        Literal
','           Punctuation
' '           Text
'False'       Literal
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t'  Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t'  Text
'ELEMENT'     Name.Class
'['           Punctuation
'id49'        Name.Decorator
']'           Punctuation
' '           Text
'occurrences ' Keyword.Type
'matches '    Operator
'{'           Punctuation
'0..1'        Literal.Number
'}'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Report Comment' Comment
'\n'          Text

'\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'DV_TEXT'     Name.Class
'['           Punctuation
'id69'        Name.Decorator
']'           Punctuation
' \n'         Text

'\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t'  Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t'  Text
'ELEMENT'     Name.Class
'['           Punctuation
'id46'        Name.Decorator
']'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Adverse Reaction Report' Comment
'\n'          Text

'\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'DV_URI'      Name.Class
'['           Punctuation
'id70'        Name.Decorator
']'           Punctuation
' \n'         Text

'\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t'  Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t'  Text
'ELEMENT'     Name.Class
'['           Punctuation
'id48'        Name.Decorator
']'           Punctuation
' '           Text
'occurrences ' Keyword.Type
'matches '    Operator
'{'           Punctuation
'0..1'        Literal.Number
'}'           Punctuation
' '           Text
'matches '    Operator
'{'           Punctuation
'\t'          Text
'-- Supporting Clinical Record Information' Comment
'\n'          Text

'\t\t\t\t\t\t' Text
'value'       Name.Class
' '           Text
'matches '    Operator
'{'           Punctuation
'\n'          Text

'\t\t\t\t\t\t\t' Text
'DV_EHR_URI'  Name.Class
'['           Punctuation
'id71'        Name.Decorator
']'           Punctuation
' \n'         Text

'\t\t\t\t\t\t' Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t\t'  Text
'}'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'}'           Punctuation
'\n'          Text

'\t\t\t'      Text
'}'           Punctuation
'\n'          Text

'\t\t'        Text
'}'           Punctuation
'\n'          Text

'\t'          Text
'}'           Punctuation
'\n'          Text

'\n'          Text

'terminology\n' Generic.Heading

'\t'          Text
'term_definitions' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t'        Text
'['           Punctuation
'"'           Literal.String
'en'          Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id1'         Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Adverse Reaction' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'A harmful or undesirable, unexpected effect associated with exposure to any substance or agent, including food, plants, animals, venom from animal stings, or a medication at therapeutic or sub-therapeutic doses.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id3'         Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Substance/Agent' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Identification of a substance, agent, or a class of substance, that is considered to be responsible for the Adverse Reaction.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id5'         Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Absolute Contraindication?' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Is administration of this Substance/Agent absolutely contraindicated in this individual?' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id7'         Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Overall Comment' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Additional narrative about the Adverse Reaction as a whole, not captured in other fields.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id10'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Reaction Event' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Details about each Adverse Reaction Event.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id11'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Specific Substance/Agent' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Specific identification of the actual Substance/Agent considered to be responsible for the Adverse Reaction event.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id12'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Manifestation' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Clinical manifestation of the Adverse Reaction expressed as a single word, phrase or brief description, e.g. nausea or rash.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id13'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Reaction Description' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Narrative description of the Adverse Reaction.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id17'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Reaction Type' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'The type of Adverse Reaction as determined by the clinician.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id19'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Exposure Description' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Description about exposure to the Substance/Agent.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id20'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Additional Exposure Detail' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Additional detail about exposure/s for this Adverse Reaction event, including structured medication amount/frequency/route information.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id21'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Earliest Exposure' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Record of the date and/or time of the earliest or initial exposure to the Substance/Agent.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id22'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Certainty'   Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Degree of certainty, as assessed by a clinician, that the specific Substance/Agent was the cause of the Adverse Reaction.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'at23'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Suspected'   Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Possibly the causative agent.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'at24'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Probable'    Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Likely to be the causative agent, but not confirmed by testing or rechallenge.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'at25'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Confirmed'   Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Confirmed as the causative agent, by testing or rechallenge.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id26'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Duration of Exposure' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'The amount of time of exposure to the Substance/Agent.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id28'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Onset of Reaction' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Record of the date and/or time of the onset of the Adverse Reaction.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id29'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Duration of Reaction' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'The amount of time that the Adverse Reaction was present.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id30'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Additional Reaction Detail' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Additional detail about the Adverse Reaction, including anatomical location.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id32'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Multimedia'  Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Inclusion of any multimedia file to support the recording of the Adverse Reaction event.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id33'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Reaction Comment' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Additional narrative about the Adverse Reaction event not captured in other fields.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id41'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Clinical Management Description' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Narrative description of the clinical management provided.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id42'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Reporting Details' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Further details required for reporting to regulatory bodies.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id45'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Reaction Reported?' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Was the Adverse Reaction reported to a regulatory body?' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id46'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Adverse Reaction Report' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Link to an Adverse Reaction Report sent to a regulatory body.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id48'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Supporting Clinical Record Information' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Link to further information about the presentation and findings that exist elsewhere in the health record, including allergy test reports.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id49'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Report Comment' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Additional narrative about the Adverse Reaction Report, including the reason for non-reporting, if required.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'id50'        Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Future Use'  Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Narrative description of clinician instructions or advice related to future exposure to, or administration of, the Substance/Agent.' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'['           Punctuation
'"'           Literal.String
'ac1'         Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'text'        Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Certainty (synthesised)' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t\t'    Text
'description' Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'Degree of certainty, as assessed by a clinician, that the specific Substance/Agent was the cause of the Adverse Reaction. (synthesised)' Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'>'           Punctuation
'\n'          Text

'\t\t'        Text
'>'           Punctuation
'\n'          Text

'\t'          Text
'>'           Punctuation
'\n'          Text

'\t'          Text
'value_sets'  Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t'        Text
'['           Punctuation
'"'           Literal.String
'ac1'         Literal.String
'"'           Literal.String
']'           Punctuation
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'\n'          Text

'\t\t\t'      Text
'id'          Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'ac1'         Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t\t'      Text
'members'     Name.Class
' '           Text
'='           Operator
' '           Text
'<'           Punctuation
'"'           Literal.String
'at23'        Literal.String
'"'           Literal.String
','           Punctuation
' '           Text
'"'           Literal.String
'at24'        Literal.String
'"'           Literal.String
','           Punctuation
' '           Text
'"'           Literal.String
'at25'        Literal.String
'"'           Literal.String
'>'           Punctuation
'\n'          Text

'\t\t'        Text
'>'           Punctuation
'\n'          Text

'\t'          Text
'>'           Punctuation
'\n'          Text
