Skip to content

Instantly share code, notes, and snippets.

@freshehr
Created November 23, 2021 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freshehr/4e31a004b6e5b6a09dd2f648c1c93bfb to your computer and use it in GitHub Desktop.
Save freshehr/4e31a004b6e5b6a09dd2f648c1c93bfb to your computer and use it in GitHub Desktop.
Weight archetype in Web template json
{
"id" : "body_weight",
"name" : "Body weight",
"localizedName" : "Body weight",
"rmType" : "OBSERVATION",
"nodeId" : "openEHR-EHR-OBSERVATION.body_weight.v2",
"min" : 0,
"max" : 1,
"localizedNames" : {
"en" : "Body weight"
},
"localizedDescriptions" : {
"en" : "Measurement of the body weight of an individual."
},
"aqlPath" : "/content[openEHR-EHR-OBSERVATION.body_weight.v2]",
"children" : [ {
"id" : "any_event",
"name" : "Any event",
"localizedName" : "Any event",
"rmType" : "EVENT",
"nodeId" : "at0003",
"min" : 0,
"max" : -1,
"localizedNames" : {
"en" : "Any event"
},
"localizedDescriptions" : {
"en" : "Default, unspecified point in time or interval event which may be explicitly defined in a template or at run-time."
},
"aqlPath" : "/content[openEHR-EHR-OBSERVATION.body_weight.v2]/data[at0002]/events[at0003]",
"children" : [ {
"id" : "weight",
"name" : "Weight",
"localizedName" : "Weight",
"rmType" : "DV_QUANTITY",
"nodeId" : "at0004",
"min" : 1,
"max" : 1,
"localizedNames" : {
"en" : "Weight"
},
"localizedDescriptions" : {
"en" : "The weight of the individual."
},
"aqlPath" : "/content[openEHR-EHR-OBSERVATION.body_weight.v2]/data[at0002]/events[at0003]/data[at0001]/items[at0004]/value",
"inputs" : [ {
"suffix" : "magnitude",
"type" : "DECIMAL"
}, {
"suffix" : "unit",
"type" : "CODED_TEXT",
"list" : [ {
"value" : "kg",
"label" : "kg",
"validation" : {
"range" : {
"minOp" : ">=",
"min" : 0.0,
"maxOp" : "<=",
"max" : 1000.0
}
}
}, {
"value" : "[lb_av]",
"label" : "[lb_av]",
"localizedLabels" : {
"en" : "lbm"
},
"validation" : {
"range" : {
"minOp" : ">=",
"min" : 0.0,
"maxOp" : "<=",
"max" : 2000.0
}
}
}, {
"value" : "g",
"label" : "g",
"validation" : {
"range" : {
"minOp" : ">=",
"min" : 0.0,
"maxOp" : "<=",
"max" : 1000000.0
}
}
} ]
} ],
"termBindings" : {
"LOINC" : {
"value" : "[LOINC::29463-7]",
"terminologyId" : "LOINC"
}
}
}, {
"id" : "comment",
"name" : "Comment",
"localizedName" : "Comment",
"rmType" : "DV_TEXT",
"nodeId" : "at0024",
"min" : 0,
"max" : 1,
"localizedNames" : {
"en" : "Comment"
},
"localizedDescriptions" : {
"en" : "Additional narrative about the measurement of Body weight, not captured in other fields."
},
"aqlPath" : "/content[openEHR-EHR-OBSERVATION.body_weight.v2]/data[at0002]/events[at0003]/data[at0001]/items[at0024]/value",
"inputs" : [ {
"type" : "TEXT"
} ]
}, {
"id" : "state_of_dress",
"name" : "State of dress",
"localizedName" : "State of dress",
"rmType" : "DV_CODED_TEXT",
"nodeId" : "at0009",
"min" : 0,
"max" : 1,
"dependsOn" : [ "weight", "comment" ],
"localizedNames" : {
"en" : "State of dress"
},
"localizedDescriptions" : {
"en" : "Description of the state of dress of the person at the time of weighing."
},
"aqlPath" : "/content[openEHR-EHR-OBSERVATION.body_weight.v2]/data[at0002]/events[at0003]/state[at0008]/items[at0009]/value",
"inputs" : [ {
"suffix" : "code",
"type" : "CODED_TEXT",
"list" : [ {
"value" : "at0013",
"label" : "Naked",
"localizedLabels" : {
"en" : "Naked"
},
"localizedDescriptions" : {
"en" : "Without any clothes."
}
}, {
"value" : "at0017",
"label" : "Nappy/diaper",
"localizedLabels" : {
"en" : "Nappy/diaper"
},
"localizedDescriptions" : {
"en" : "Wearing only a nappy - which may add significantly to weight."
}
}, {
"value" : "at0011",
"label" : "Lightly clothed/underwear",
"localizedLabels" : {
"en" : "Lightly clothed/underwear"
},
"localizedDescriptions" : {
"en" : "Clothing which will not add to weight significantly."
}
}, {
"value" : "at0028",
"label" : "Fully clothed, without shoes",
"localizedLabels" : {
"en" : "Fully clothed, without shoes"
},
"localizedDescriptions" : {
"en" : "Clothing which may add significantly to weight."
}
}, {
"value" : "at0010",
"label" : "Fully clothed, including shoes",
"localizedLabels" : {
"en" : "Fully clothed, including shoes"
},
"localizedDescriptions" : {
"en" : "Clothing which may add significantly to weight, including shoes."
}
} ]
} ]
}, {
"id" : "confounding_factors",
"name" : "Confounding factors",
"localizedName" : "Confounding factors",
"rmType" : "DV_TEXT",
"nodeId" : "at0025",
"min" : 0,
"max" : -1,
"dependsOn" : [ "weight", "comment" ],
"localizedNames" : {
"en" : "Confounding factors"
},
"localizedDescriptions" : {
"en" : "Record any issues or factors that may impact on the measurement of body weight eg timing in menstrual cycle, timing of recent bowel motion or noting of amputation."
},
"aqlPath" : "/content[openEHR-EHR-OBSERVATION.body_weight.v2]/data[at0002]/events[at0003]/state[at0008]/items[at0025]/value",
"inputs" : [ {
"type" : "TEXT"
} ]
}, {
"id" : "time",
"name" : "Time",
"rmType" : "DV_DATE_TIME",
"min" : 1,
"max" : 1,
"aqlPath" : "/content[openEHR-EHR-OBSERVATION.body_weight.v2]/data[at0002]/events[at0003]/time",
"inputs" : [ {
"type" : "DATETIME"
} ],
"inContext" : true
} ]
}, {
"id" : "birth",
"name" : "Birth",
"localizedName" : "Birth",
"rmType" : "POINT_EVENT",
"nodeId" : "at0026",
"min" : 0,
"max" : 1,
"localizedNames" : {
"en" : "Birth"
},
"localizedDescriptions" : {
"en" : "Usually the first weight, measured soon after birth. This event will only be used once per health record\r\n."
},
"aqlPath" : "/content[openEHR-EHR-OBSERVATION.body_weight.v2]/data[at0002]/events[at0026]",
"children" : [ {
"id" : "weight",
"name" : "Weight",
"localizedName" : "Weight",
"rmType" : "DV_QUANTITY",
"nodeId" : "at0004",
"min" : 1,
"max" : 1,
"localizedNames" : {
"en" : "Weight"
},
"localizedDescriptions" : {
"en" : "The weight of the individual."
},
"aqlPath" : "/content[openEHR-EHR-OBSERVATION.body_weight.v2]/data[at0002]/events[at0026]/data[at0001]/items[at0004]/value",
"inputs" : [ {
"suffix" : "magnitude",
"type" : "DECIMAL"
}, {
"suffix" : "unit",
"type" : "CODED_TEXT",
"list" : [ {
"value" : "kg",
"label" : "kg",
"validation" : {
"range" : {
"minOp" : ">=",
"min" : 0.0,
"maxOp" : "<=",
"max" : 1000.0
}
}
}, {
"value" : "[lb_av]",
"label" : "[lb_av]",
"localizedLabels" : {
"en" : "lbm"
},
"validation" : {
"range" : {
"minOp" : ">=",
"min" : 0.0,
"maxOp" : "<=",
"max" : 2000.0
}
}
}, {
"value" : "g",
"label" : "g",
"validation" : {
"range" : {
"minOp" : ">=",
"min" : 0.0,
"maxOp" : "<=",
"max" : 1000000.0
}
}
} ]
} ],
"termBindings" : {
"LOINC" : {
"value" : "[LOINC::29463-7]",
"terminologyId" : "LOINC"
}
}
}, {
"id" : "comment",
"name" : "Comment",
"localizedName" : "Comment",
"rmType" : "DV_TEXT",
"nodeId" : "at0024",
"min" : 0,
"max" : 1,
"localizedNames" : {
"en" : "Comment"
},
"localizedDescriptions" : {
"en" : "Additional narrative about the measurement of Body weight, not captured in other fields."
},
"aqlPath" : "/content[openEHR-EHR-OBSERVATION.body_weight.v2]/data[at0002]/events[at0026]/data[at0001]/items[at0024]/value",
"inputs" : [ {
"type" : "TEXT"
} ]
}, {
"id" : "state_of_dress",
"name" : "State of dress",
"localizedName" : "State of dress",
"rmType" : "DV_CODED_TEXT",
"nodeId" : "at0009",
"min" : 0,
"max" : 1,
"dependsOn" : [ "weight", "comment" ],
"localizedNames" : {
"en" : "State of dress"
},
"localizedDescriptions" : {
"en" : "Description of the state of dress of the person at the time of weighing."
},
"aqlPath" : "/content[openEHR-EHR-OBSERVATION.body_weight.v2]/data[at0002]/events[at0026]/state[at0008]/items[at0009]/value",
"inputs" : [ {
"suffix" : "code",
"type" : "CODED_TEXT",
"list" : [ {
"value" : "at0013",
"label" : "Naked",
"localizedLabels" : {
"en" : "Naked"
},
"localizedDescriptions" : {
"en" : "Without any clothes."
}
}, {
"value" : "at0017",
"label" : "Nappy/diaper",
"localizedLabels" : {
"en" : "Nappy/diaper"
},
"localizedDescriptions" : {
"en" : "Wearing only a nappy - which may add significantly to weight."
}
}, {
"value" : "at0011",
"label" : "Lightly clothed/underwear",
"localizedLabels" : {
"en" : "Lightly clothed/underwear"
},
"localizedDescriptions" : {
"en" : "Clothing which will not add to weight significantly."
}
}, {
"value" : "at0028",
"label" : "Fully clothed, without shoes",
"localizedLabels" : {
"en" : "Fully clothed, without shoes"
},
"localizedDescriptions" : {
"en" : "Clothing which may add significantly to weight."
}
}, {
"value" : "at0010",
"label" : "Fully clothed, including shoes",
"localizedLabels" : {
"en" : "Fully clothed, including shoes"
},
"localizedDescriptions" : {
"en" : "Clothing which may add significantly to weight, including shoes."
}
} ]
} ]
}, {
"id" : "confounding_factors",
"name" : "Confounding factors",
"localizedName" : "Confounding factors",
"rmType" : "DV_TEXT",
"nodeId" : "at0025",
"min" : 0,
"max" : -1,
"dependsOn" : [ "weight", "comment" ],
"localizedNames" : {
"en" : "Confounding factors"
},
"localizedDescriptions" : {
"en" : "Record any issues or factors that may impact on the measurement of body weight eg timing in menstrual cycle, timing of recent bowel motion or noting of amputation."
},
"aqlPath" : "/content[openEHR-EHR-OBSERVATION.body_weight.v2]/data[at0002]/events[at0026]/state[at0008]/items[at0025]/value",
"inputs" : [ {
"type" : "TEXT"
} ]
}, {
"id" : "time",
"name" : "Time",
"rmType" : "DV_DATE_TIME",
"min" : 1,
"max" : 1,
"aqlPath" : "/content[openEHR-EHR-OBSERVATION.body_weight.v2]/data[at0002]/events[at0026]/time",
"inputs" : [ {
"type" : "DATETIME"
} ],
"inContext" : true
} ]
}, {
"id" : "language",
"name" : "Language",
"rmType" : "CODE_PHRASE",
"min" : 1,
"max" : 1,
"aqlPath" : "/content[openEHR-EHR-OBSERVATION.body_weight.v2]/language",
"inContext" : true
}, {
"id" : "encoding",
"name" : "Encoding",
"rmType" : "CODE_PHRASE",
"min" : 1,
"max" : 1,
"aqlPath" : "/content[openEHR-EHR-OBSERVATION.body_weight.v2]/encoding",
"inContext" : true
}, {
"id" : "subject",
"name" : "Subject",
"rmType" : "PARTY_PROXY",
"min" : 1,
"max" : 1,
"aqlPath" : "/content[openEHR-EHR-OBSERVATION.body_weight.v2]/subject",
"inputs" : [ {
"suffix" : "id",
"type" : "TEXT"
}, {
"suffix" : "id_scheme",
"type" : "TEXT"
}, {
"suffix" : "id_namespace",
"type" : "TEXT"
}, {
"suffix" : "name",
"type" : "TEXT"
} ],
"inContext" : true
} ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment