I’ve been trying to get the openEHR SDK class generator to give me the option to add arbitrary TERM_MAPPINGS to an existing DV_TEXT (use case is add arbitrary maps to snomed codes for the name). I’ve tried to pass the OPT with the “mappings” attribute with several flavors (as a domain type (C_CODE_PHRASE), as a class
with the corresponding type name, with and without specifying a terminology,etc.)
Is there any OPT substructure that would allow this without knowing the specific codes beforehand?
1 Like
Hey @yampeku,
I think to enable arbitrary term mappings in an existing DV_TEXT using the openEHR SDK class generator, ensure your OPT includes a DV_TEXT element with a “mappings” attribute of type “TERM_MAPPING” within a “terminology” element. The SDK should then recognize this structure and allow you to add mappings dynamically without predefining specific codes.
You can visit to this source: https://docs.apimatic.io/generate-sdks/overview-sdks-cpq
Thanks
1 Like