...
| Code Block | ||
|---|---|---|
| ||
{
"allergyControlConceptIdMap": {
"medicationAllergenUuid": "ccb80eea-e8f6-4016-9c29-fcfda516018b",
"foodAllergenUuid": "d0ac880e-bfa3-4868-8762-3630b14ba56d",
"environmentalAllergenUuid": "cff155eb-5258-463d-a54c-3644b37f9def",
"otherAllergenUuid": "df2e7016-5f2e-41f4-b376-73762429a1c5",
"allergyReactionUuid": "34a3f301-8d26-413c-b94c-41af2a01957a",
"allergySeverityUuid": "80536f34-cee0-4024-983d-152648ba785b"
},
showTextAsAbnormal: true
} |
Add the custom attribute in a CSV file located at
| Code Block | ||
|---|---|---|
| ||
/masterdata/configuration/concepts/allergies.csv |
Specify the attribute properties
| Code Block | ||
|---|---|---|
| ||
Uuid,Void/Retire,Mappings|SAME-AS,Fully specified name:en,Short name:en,Description:en,Fully specified name:fr,Short name:fr,Description:fr,Data class,Data type,Complex data handler,Answers,Members,Allow decimals,Units,Normal low,Normal high,Absolute low,Absolute high,_version:1,_order:1200
ccb80eea-e8f6-4016-9c29-fcfda516018b,,,Reference application common drug allergens,,A convenience set to allow for easy selection of common drug allergens,,,,ConvSet,N/A,,,ACE inhibitors;Codeine,,,,,,,,
34a3f301-8d26-413c-b94c-41af2a01957a,,,Reference application allergic reactions,,A convenience set of reactions to allergens for documenting allergy history,,,,ConvSet,N/A,,,Mental status change;Anaemia,,,,,,,,
80536f34-cee0-4024-983d-152648ba785b,,,Allergy Severities,,,,,,Misc,Coded,,,Mild;Moderate;Severe,,,,,,,, |
By default, In the display control only the entries with severity as Severe are coloured Red, But by enabling the config variable showTextAsAbnormal all the entries can be seen with Red text.
...