Skip to content

Commit

Permalink
Merge pull request #134 from medizininformatik-initiative/133-fix-fhi…
Browse files Browse the repository at this point in the history
…rpath-generation-for-consent-to-accomodate-sq2cql

Change fixed FHIRPath expression to inlcude missing elements currently not generated by sq2cql
  • Loading branch information
paulolaup authored Dec 2, 2024
2 parents 601726c + d01d8b4 commit d3c8d42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion combined-consent-generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def generate_fixed_fhir_criteria(provisions_code, provisions_display) -> list[Fi


def generate_fixed_cql_criteria(provisions_code, provisions_display) -> list[FixedCQLCriteria]:
return [FixedCQLCriteria("Coding", "provision.provision.code",
return [FixedCQLCriteria("Coding", "provision.provision.code.coding",
[{"code": code, "display": display, "system": "urn:oid:2.16.840.1.113883.3.1937.777.24.5.3"}])
for code, display in zip(provisions_code, provisions_display)]

Expand Down
2 changes: 1 addition & 1 deletion core/CQLMappingGenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class CQLMappingGenerator(object):
def __init__(self, querying_meta_data_resolver: ResourceQueryingMetaDataResolver, parser=FHIRParser):
"""
:param querying_meta_data_resolver: resolves the for the query relevant meta data for a given FHIR profile
:param querying_meta_data_resolver: resolves the for the query relevant metadata for a given FHIR profile
snapshot
"""
self.querying_meta_data_resolver = querying_meta_data_resolver
Expand Down

0 comments on commit d3c8d42

Please sign in to comment.