Process to follow for coding using Terminology server

Hi,

We are in the process of adding a terminology server to code the composition date. However many of the nodes that can be coded are text fields (Eg. Symptom/sign name in Symptom/sign archetype that we have used in Complaints template). As we understand, the data type has to be changed to CODED-TEXT before we can store coded data.

What is the best practice to do this? Shall we go ahead and edit the archetypes, in which case our archetypes will no longer be same as the ones in CKM? Are there more robust mechanisms to achieve this without breaking compliance to CKM?

regards

DV_CODED_TEXT inherits from DV_TEXT, so in the object oriented model any text can be coded.

Hi Dileep,

As Pablo says, any DV_TEXT can be sub-classed as DV_CODED_TEXT.

How are you storing the composition data ,FLAT JSON?

If so you can save coded data for any DV_TEXT node as follows

“adverse_reaction_list/allergies_and_adverse_reactions/adverse_reaction_risk:0/causative_agent|code”: “91936005”,
“adverse_reaction_list/allergies_and_adverse_reactions/adverse_reaction_risk:0/causative_agent|value”: “allergy to penicillin”,
“adverse_reaction_list/allergies_and_adverse_reactions/adverse_reaction_risk:0/causative_agent|terminology”: “SNOMED-CT”,

“adverse_reaction_list/allergies_and_adverse_reactions/adverse_reaction_risk:0/causative_agent”: “non-coded text”,

The fulll RAW JSON equivalent is

{
@class”: “ELEMENT”,
“name”: {
@class”: “DV_TEXT”,
“value”: “Causative agent”
},
“archetype_node_id”: “at0002”,
“value”: {
@class”: “DV_CODED_TEXT”,
“value”: “allergy to penicillin”,
“defining_code”: {
@class”: “CODE_PHRASE”,
“terminology_id”: {
@class”: “TERMINOLOGY_ID”,
“value”: “SNOMED-CT”
},
“code_string”: “91936005”
}
}
},

Thanks Ian,

I tested and it works. Your detailed explanation was a great help. I am sure you will make a very good teacher​:+1:. Though Pablo also said the same thing first, I did not fully get it.

regards

Hi Dileep

There is also the Mappings attribute set which allows you to code but without changing the text to the definition in the terminology. You can then code something in a range of terminologies.

Cheers, Sam