Hi,
We had three forms for the project with the following form_ids: case_investigation, contact:suspected_case:create and contact:suspected_case:edit, we have made progress with the case_investigation form and we can now access the field of interest in the report and medic portal
Our project team wants to know the number of persons registered against number screened, which I can only get from the number of persons registered using the form with id contact:suspected_case:create, since we already have data on the number screened
Running the query under Fauxton with medic database to see if the form exists, no results are displayed
{
“selector”: {
Contact documents will not have a form field that contains the id of the form that created them that you can filter with. You could add a specific field in the contact form that you can use for filtering.
@diana
Using the contact create form, we captured participant consent (yes,no), personal information (name, id, etc), address and medical examination (weight, height, c_bmi, bmi, temp, spo2, bps, bpd, rbs) and also an eligibility test
Any field or combination of fields that only exists in these contacts can work for your filter. You can check the contact document’s json in Fauxton to see what information they contain and go from there.
@diana
We build on an existing application which looks was only pushing reporting data from the case_investigation form, now data on suspect registration as above is required to be displayed on target dashboard, thus need to figure out how to get report data from the registration form, not sure if you get my challenge
@diana
I used Fauxton and added the extra fields from the first form to the report. When I ran the report and downloaded it, the fields were present as column headings but only one record complete
Viewing individual records in Fauxton shows that the records exist, but when I add to the report, I get no data displayed, any ideas I note the following headers for contact registration form:
@derick
I have run the query below and I get results, especially of the contact creation data:
{
“selector”: {
“type”: “contact”,
“contact_type”: “suspected_case”
}
}
Running the query below only gives one result:
{
“selector”: {
“type”: “data_record”,
“contact_type”: “suspected_case”
}
}
Now my issue is why combining the fields from case-investigation and contact creation doesn’t work and only displays one record?
Opening any of the forms gives me the following header information:
“type”: “data_record”,
“contact_type”: “suspected_case”,
Running the following query, only one record is displayed from the case-investigation form:
{
“selector”: {
“type”: “data_record”,
“contact_type”: “suspected_case”
}
}
What is the implication of “type”: “data_record” and “type”: “contact”?
query seems to combine attributes of two different docs and if you’re getting a result, then it points to some misconfiguration that you need to be look in to.