# How to get the SDK class generator from OPT to allow term_mappings **Category:** [Tool Support](https://discourse.openehr.org/c/tool-support/29) **Created:** 2024-05-14 15:22 UTC **Views:** 168 **Replies:** 1 **URL:** https://discourse.openehr.org/t/how-to-get-the-sdk-class-generator-from-opt-to-allow-term-mappings/5200 --- ## Post #1 by @yampeku 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? --- ## Post #2 by @badsmith 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-](https://docs.apimatic.io/generate-sdks/overview-sdks/)[cpq](https://www.igmguru.com/salesforce/salesforce-cpq-training/) Thanks --- **Canonical:** https://discourse.openehr.org/t/how-to-get-the-sdk-class-generator-from-opt-to-allow-term-mappings/5200 **Original content:** https://discourse.openehr.org/t/how-to-get-the-sdk-class-generator-from-opt-to-allow-term-mappings/5200