Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cql-to-elm project depends directly on Jackson #1274

Open
JPercival opened this issue Nov 6, 2023 · 0 comments
Open

cql-to-elm project depends directly on Jackson #1274

JPercival opened this issue Nov 6, 2023 · 0 comments

Comments

@JPercival
Copy link
Contributor

The CqlTranslatorOptionsMapper class is used to serialize compiler options for CQL. This requires a direct dependency on Jackson, as seen here:

https://github.com/cqframework/clinical_quality_language/blob/master/Src/java/cql-to-elm/build.gradle#L23-L24

Ideally, we'd define a mapper API such that the serialization library could be swapped at runtime to account for numerous serialization frameworks, such as JAXB, Kotlin, etc. We have this pattern established already for ModelInfo and ELM, which support both JAXB and Jackson. See the model-jaxb and model-jackson modules as an example, which show how to define an interface and use a ServiceLoader at runtime to load the correct serialization dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant