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

Add error/warning OperationOutcome to $apply/$prepopulate. Implement generateQuestionnaire. #249

Merged
merged 2 commits into from
Feb 19, 2023

Conversation

barhodes
Copy link
Contributor

When errors or warnings occur during Questionnaire population they will be added to an OperationOutcome and returned along with the Questionnaire or Bundle.

Implemented functionality to generate Questionnaires from PlanDefinition action inputs as long as the input is using a Profile and the StructureDefinition of that Profile is available.

The following tasks are included in this PR:
#235
https://github.com/alphora/dqm-platform/issues/138

@barhodes barhodes added the enhancement New feature or request label Feb 17, 2023
@barhodes barhodes self-assigned this Feb 17, 2023
Copy link
Contributor

@JPercival JPercival left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job. That was a lot of work.

@JPercival JPercival merged commit 5448a6a into master Feb 19, 2023
@JPercival JPercival deleted the generate-questionnaire branch February 19, 2023 18:54
JPercival added a commit that referenced this pull request Feb 23, 2023
* Added the queryBatchThreshold, maxCodesPerQuery, pageSize and shouldE… (#208)

Added the queryBatchThreshold, maxCodesPerQuery, pageSize and shouldExpandValueSets configuration to CqlEngineOptions

* Rev to engine snapshot 2.4.0 (#209)

* Changed maxCodesPerQuery type to Integer in RetrieveProviderConfig (#210)

* add test data

* BundleFhirRepository wip

* add test utility

* update test data

* load test data test

* R4MeasureProcessor constructor

* release v2.4.0 (#211)

* snapshot v2.5.0 (#212)

* Create add-to-platform-project.yml

* update Repository api changes, develop R4TestRepository

* add tests for R4TestRepository

* relocate fhirRepository

* relocate BundleFhirRepository

* import fix

* use utility for new Bundle creation

* update fhir repository searchByurl

* Update BundleRetrieveProvider.java to use streams (#220)

Update BundleRetrieveProvider.java to use Java streams to filter resources. This results in cleaner, more concise code as well as better performance as a new ArrayList is not being created for each filter stage. This change should not result in any visible change in behavior.

* Concise assertions in BundleRetrieveProvider.java (#221)

Use more concise assertions in BundleRetrieveProvider.java. For example, rely on the fact that Matchers.contains() ensures that the iterable size matches the number of items passed to contains().

* Add Questionnaire and QuestionnaireResponse modules (#229)

* Add Questionnaire modules

* Fix prepopulate test

* Fix prepopulate apply test

* Add dstu3 and r4 tests for Questionnaire

* Inc version

* First pass of definition based extraction

* release v2.5.0 (#234)

* release v2.5.0

* update latest module

* update more latest module

* update latest module in evaluator

* update version in evaluator dependencies

* remove redundant dependency

* tests are failing

* update test fixture to remove id from Parameters

* Snapshot v2.6.0 (#236)

* stop auto close on staging repo on deploy

* snapshot-v2.6.0

* use version var

* Integrating care-gaps common code. (#237)

Co-authored-by: Chalma Maadaadi <chalma@alphora.com>

* Add GoogleStyle as default Java format

* Clean up build warnings

* Eagerly cache resource in Bundle provider (#241)

* Add definition based extraction and add extract step during apply (#238)

Add dstu3 and r5 tests for populate, extract and apply operations

* Add github actions for checking PRs and publishing Snapshots (#230)

* Add github actions for checking PRs and publishing Snapshots

* Remove travis

* Fix relative IG path

* Update publish-snapshot.yml

* Use set for evaluated resources (#242)

* Use set for evaluated resources

* Fix some warnings in BundleRetrieveProvider

* Disable test failing on CI server

* Fix CI publish

* add federated repository

* release 2.6.0 (#245)

* snapshot 2.7.0 (#246)

* Repository api constructs

* remove println

* Add error/warning OperationOutcome to $apply/$prepopulate.  Implement generateQuestionnaire. (#249)

* Add error/warning OperationOutcome to $apply/$prepopulate.  Implement generateQuestionnaire.

* Use CRMI messages extension for operation outcomes

---------

Co-authored-by: Jonathan Percival <jonathan.i.percival@gmail.com>

* Add Google style editor config

* clear dependency

* temp change

* rectify cql compiler version name

* update mvn repository

* load library attachment from cql url

* rename repository

* add Repositories static method

* version rectify

* Fixes for cycles

* Update CQL versions

---------

Co-authored-by: Adam Stevenson <stevenson_adam@yahoo.com>
Co-authored-by: JP <jonathan.i.percival@gmail.com>
Co-authored-by: Aaron Nash <101207345+aaron-nash@users.noreply.github.com>
Co-authored-by: Brenin Rhodes <brenin@alphora.com>
Co-authored-by: chalmarm <44471040+chalmarm@users.noreply.github.com>
Co-authored-by: Chalma Maadaadi <chalma@alphora.com>
JPercival added a commit that referenced this pull request Feb 23, 2023
* CQF Setup WIP

* WIP CQF FHIR Repo setup

* Merge master

* WIP Repo setup

* WIP

* Initial docs website

* More cleanup of docs

* Fix snippets support

* Feature cqf setup : add test repository creation utilities (#222)

* add test data

* BundleFhirRepository wip

* add test utility

* update test data

* load test data test

* R4MeasureProcessor constructor

* update Repository api changes, develop R4TestRepository

* add tests for R4TestRepository

* relocate fhirRepository

* relocate BundleFhirRepository

* import fix

* use utility for new Bundle creation

* update fhir repository searchByurl

* Feature cqf setup eval (#248)

* add test data

* BundleFhirRepository wip

* add test utility

* update test data

* load test data test

* R4MeasureProcessor constructor

* update Repository api changes, develop R4TestRepository

* add tests for R4TestRepository

* relocate fhirRepository

* relocate BundleFhirRepository

* import fix

* use utility for new Bundle creation

* update fhir repository searchByurl

* add federated repository

* Repository api constructs

* remove println

* Feature cqf setup eval (#254)

* Added the queryBatchThreshold, maxCodesPerQuery, pageSize and shouldE… (#208)

Added the queryBatchThreshold, maxCodesPerQuery, pageSize and shouldExpandValueSets configuration to CqlEngineOptions

* Rev to engine snapshot 2.4.0 (#209)

* Changed maxCodesPerQuery type to Integer in RetrieveProviderConfig (#210)

* add test data

* BundleFhirRepository wip

* add test utility

* update test data

* load test data test

* R4MeasureProcessor constructor

* release v2.4.0 (#211)

* snapshot v2.5.0 (#212)

* Create add-to-platform-project.yml

* update Repository api changes, develop R4TestRepository

* add tests for R4TestRepository

* relocate fhirRepository

* relocate BundleFhirRepository

* import fix

* use utility for new Bundle creation

* update fhir repository searchByurl

* Update BundleRetrieveProvider.java to use streams (#220)

Update BundleRetrieveProvider.java to use Java streams to filter resources. This results in cleaner, more concise code as well as better performance as a new ArrayList is not being created for each filter stage. This change should not result in any visible change in behavior.

* Concise assertions in BundleRetrieveProvider.java (#221)

Use more concise assertions in BundleRetrieveProvider.java. For example, rely on the fact that Matchers.contains() ensures that the iterable size matches the number of items passed to contains().

* Add Questionnaire and QuestionnaireResponse modules (#229)

* Add Questionnaire modules

* Fix prepopulate test

* Fix prepopulate apply test

* Add dstu3 and r4 tests for Questionnaire

* Inc version

* First pass of definition based extraction

* release v2.5.0 (#234)

* release v2.5.0

* update latest module

* update more latest module

* update latest module in evaluator

* update version in evaluator dependencies

* remove redundant dependency

* tests are failing

* update test fixture to remove id from Parameters

* Snapshot v2.6.0 (#236)

* stop auto close on staging repo on deploy

* snapshot-v2.6.0

* use version var

* Integrating care-gaps common code. (#237)

Co-authored-by: Chalma Maadaadi <chalma@alphora.com>

* Add GoogleStyle as default Java format

* Clean up build warnings

* Eagerly cache resource in Bundle provider (#241)

* Add definition based extraction and add extract step during apply (#238)

Add dstu3 and r5 tests for populate, extract and apply operations

* Add github actions for checking PRs and publishing Snapshots (#230)

* Add github actions for checking PRs and publishing Snapshots

* Remove travis

* Fix relative IG path

* Update publish-snapshot.yml

* Use set for evaluated resources (#242)

* Use set for evaluated resources

* Fix some warnings in BundleRetrieveProvider

* Disable test failing on CI server

* Fix CI publish

* add federated repository

* release 2.6.0 (#245)

* snapshot 2.7.0 (#246)

* Repository api constructs

* remove println

* Add error/warning OperationOutcome to $apply/$prepopulate.  Implement generateQuestionnaire. (#249)

* Add error/warning OperationOutcome to $apply/$prepopulate.  Implement generateQuestionnaire.

* Use CRMI messages extension for operation outcomes

---------

Co-authored-by: Jonathan Percival <jonathan.i.percival@gmail.com>

* Add Google style editor config

* clear dependency

* temp change

* rectify cql compiler version name

* update mvn repository

* load library attachment from cql url

* rename repository

* add Repositories static method

* version rectify

* Fixes for cycles

* Update CQL versions

---------

Co-authored-by: Adam Stevenson <stevenson_adam@yahoo.com>
Co-authored-by: JP <jonathan.i.percival@gmail.com>
Co-authored-by: Aaron Nash <101207345+aaron-nash@users.noreply.github.com>
Co-authored-by: Brenin Rhodes <brenin@alphora.com>
Co-authored-by: chalmarm <44471040+chalmarm@users.noreply.github.com>
Co-authored-by: Chalma Maadaadi <chalma@alphora.com>

* Don't format on save

---------

Co-authored-by: mdnazmulkarim <nazmul.karim@smilecdr.com>
Co-authored-by: Adam Stevenson <stevenson_adam@yahoo.com>
Co-authored-by: Aaron Nash <101207345+aaron-nash@users.noreply.github.com>
Co-authored-by: Brenin Rhodes <brenin@alphora.com>
Co-authored-by: chalmarm <44471040+chalmarm@users.noreply.github.com>
Co-authored-by: Chalma Maadaadi <chalma@alphora.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants