AudaciousInquiry / fhir-saner

Situation Awareness for Novel Epidemic Response (COVID-19 driven project to track resource availability)
17 stars 0 forks source link

How might one search for QuestionnaireResponse for a given period. #100

Open keithboone opened 4 years ago

keithboone commented 4 years ago

QuestionnaireResponse doesn't have a way to describe the time period associated with the responses.

How might this be addressed?

GinoCanessa commented 4 years ago

The collection date is currently captured in an item on the Questionnaire (e.g., here).

Searching for QuestionnaireResponses based on date would require a custom search parameter with something like: QuestionnaireResponse.item.where(linkId='collectionDate').answer.valueDate.

Also, it's been brought up that Questionnaires do not allow the Period datatype, so if we want to be able to capture a date range, it will need to be in two fields.

keithboone commented 4 years ago

Define a search parameter that allowed for QuestionnaireResponse items to be returned based on the answer given to a specific question.

Follow the pattern used by Observation code-value query parameters, use item-value-*

GinoCanessa commented 4 years ago

Note: Additional guidance for Composite Search Parameters