Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Ensure fhir path is used to determine value path #7

Open
juliangruendner opened this issue Dec 6, 2021 · 0 comments
Open

Ensure fhir path is used to determine value path #7

juliangruendner opened this issue Dec 6, 2021 · 0 comments
Assignees

Comments

@juliangruendner
Copy link
Contributor

Ensure fhir path is used to determine value path instead of making it dependent on ResourceType.

  1. Add fhirPath to "MappingContext" class
  2. Change all classes in structured_query where "Expression" is created in toCql function to use fhirPath from (in step 1) adjusted MappingContext

Step 2 would for example change the following line of code:
https://github.com/num-codex/codex-sq2cql/blob/main/src/main/java/de/numcodex/sq2cql/model/structured_query/NumericCriterion.java#L84

where instead of value it would use the respective fhir path from the MappingContext

@marc-ajs marc-ajs linked a pull request Dec 10, 2021 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants