Maybe it is a dumb question, but I am a bit confused about this. When using a DV_CODED_TEXT element, in the archetype designer, I have the possibility of using internal or external values. I guess that I should use internal codes in case that I have “local” set values, and external codes in case I would like to use external lists/set of values somehow (terminologies?), but I would like someone to reaffirm or, in case I am wrong, to give me the correct answer about that.
I just want to verify it in order to align our strategy when creating archetypes/templates with the rest of you, since I didn’t find any information about this anywhere.
Hi Laura! You’re right, you use internal codes for when the archetype should define the value set. Those codes will get an atXXXX code, and not for example a SNOMED CT code. Internal coded values can only be added to an archetype, and not to a template.
External codes are, as you say, codes from an external terminology. When you use an external terminology, it can be included using an URI or put directly in the archetype or template. External terminology value sets need a name for the terminology or value set, for example “SNOMED-CT”. I suspect the most common of these are standardised somewhere, but I don’t know where (@sebastian.iancu?)
Thanks a lot for the answer, @siljelb . Now I am confused between the difference of adding an external code of a terminology in that way or, in the other hand, to bind a value/element to a terminology by adding, first, the terminology in the “Languages and Terminologies” part and then include a binding of each element and adding the corresponding code.
Another good question! The main differences are that internal codes make archetypes self-contained, and the persisted code is “atXXXX” and not for example the SNOMED CT code. I’m not 100% sure about this, but I think that to use the term bindings of a value set on persisted data, you need to look up the bindings (=mappings) between internal at-codes and external terminologies in the archetype.