beda-software / fhir-sdc

http://hl7.org/fhir/uv/sdc/ implementation with python
MIT License
18 stars 4 forks source link

Rethink $constraint-check #52

Open ruscoder opened 1 year ago

ruscoder commented 1 year ago

Currently, $constraint-check is available only for /QuestionnaireResponse and questionnaire is a required param for it. Meanwhile $extract and $populate is available for /Questionnaire/[id]

It makes it harder to control the policies, e.g. I don't want to allow using custom questionnaires.

My suggestion, is to add /Questionnaire/[id]/$constraint-check and /Questionnaire/$constraint-check in addition to the current one (that should be left just for backward compatibility)

ruscoder commented 1 year ago

@ir4y what do you think?

ir4y commented 4 weeks ago

It is backward compatible change, so we can add this feature.