Skip to content

Commit

Permalink
Update Care Team Info (#2319)
Browse files Browse the repository at this point in the history
* Don't skip practicioners without a first name

* Fix seed script, Update data.sql
  • Loading branch information
lina-roth authored Aug 6, 2024
1 parent 73b2316 commit 638aba0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
8 changes: 4 additions & 4 deletions containers/ecr-viewer/seed-scripts/create-seed-data.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,18 @@ def convert_files():
print(f"Converted {folder} successfully.")
else:
print(f"Failed to convert {folder}. Response: {response.text}")
if os.environ.get("NEXT_PUBLIC_STANDALONE_VIEWER") == "true":
if os.environ.get("NEXT_PUBLIC_NON_INTEGRATED_VIEWER") == "true":
return fhir_bundles, metadata
else:
return fhir_bundles


if os.environ.get("NEXT_PUBLIC_STANDALONE_VIEWER") == "true":
print("Running standalone viewer")
if os.environ.get("NEXT_PUBLIC_NON_INTEGRATED_VIEWER") == "true":
print("Running non integrated viewer")
bundle_arr, metadata = convert_files()
save_sql_insert_fhir(bundle_arr)
save_sql_insert_metadata(metadata)
else:
print("Running non standalone viewer")
print("Running viewer")
bundle_arr = convert_files()
save_sql_insert_fhir(bundle_arr)
26 changes: 13 additions & 13 deletions containers/ecr-viewer/seed-scripts/sql/data.sql

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"resource":{
"resourceType": "Practitioner",
"id":"{{ ID }}",
{% if practitioner.assignedPerson and practitioner.assignedPerson.name and practitioner.assignedPerson.name.given.first._ -%}
{% if practitioner.assignedPerson and practitioner.assignedPerson.name -%}
{% assign personNames = practitioner.assignedPerson.name | to_array -%}
{% assign personType = "PERSON" -%}
{% endif -%}
Expand Down

0 comments on commit 638aba0

Please sign in to comment.