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

Need a way to indicate that an element is a JSON object with arbitrary properties #6

Open
lmckenzi opened this issue Aug 23, 2023 · 4 comments

Comments

@lmckenzi
Copy link
Contributor

In CRD, there's an extension (https://build.fhir.org/ig/HL7/davinci-crd/deviations.html#hook-configuration-extension) that allows arbitrary children. (What's allowed is actually determined by a different extension returned in a different call.) I need a way to declare a type to essentially be "JSONObject" and have that work, or something similar.

@grahamegrieve
Copy link
Contributor

@lmckenzi
Copy link
Contributor Author

No. That one has specific named children. There's a companion extension that appears on the hook rather than the service look-up. The service look-up extension has specific named properties. The one on the hook invocation itself is open-ended. It can contain any property you like - specifically anything that the payer listed as a candidate in the values they listed in the configuration hook. So I need a different capability - one where I can say "this can contain anything" rather than listing specific content.

I also need a way for the 'root' of a CDS hook extension to just be a simple type - no children.

@grahamegrieve
Copy link
Contributor

"just anything" doesn't sound very useful, really. Why both describing it?

@lmckenzi
Copy link
Contributor Author

From a validation perspective, I need to be able to say: "This element, with this name, can appear 'here', and beneath it can be anything".

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

No branches or pull requests

2 participants