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

Build a simple input structure from commcare mappings #113

Open
josephjclark opened this issue Nov 13, 2024 · 1 comment
Open

Build a simple input structure from commcare mappings #113

josephjclark opened this issue Nov 13, 2024 · 1 comment

Comments

@josephjclark
Copy link
Collaborator

josephjclark commented Nov 13, 2024

As part of the snomed mapping problem #110 we need to find a good way to formalize the commcare inputs.

Basically commcare defines forms which capture a bunch of values. We need to capture all the potential values as an input, so that we can provide a mapping to them.

I think the input structure should look like this, so that it can be sent straight to #111

zero how many units do you drink per week?
one-to-three how many units do you drink per week?

the model would return a fhir mapping like

{ 
    'zero': { system, value, display }
}

Where each line is an input to be mapped, and the first word is the mapping key, and the rest is a dump of context to help the AI make decisions. We can formalise the context later, as we learn more.

This gist contains the commcare form definitions, which should contain the full range of values: https://gist.github.com/AishaHassen/1c0fc03a850b28232b2dbbaf1bb29859

Try searching for how_many_alcoholic_drinks_per_week - around line 842 you can see the form definition with the value specified.

I think we need some sort of script which reads in this XML and extracts all the possible inputs.

@josephjclark
Copy link
Collaborator Author

Hunter will be available to help with this from the week of the 25th. I'll have a chat with her about it late next week

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

1 participant