Skip to content

Commit

Permalink
change parser output
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiagoTrabach committed Sep 6, 2023
1 parent 579d51f commit f08c2a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fhir_utils/fhir/patient/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ def fhir_to_dict(fhir_json: str, source: str) -> dict:
"birth_date": fhir_json["birthDate"] if "birthDate" in fhir_json.keys() else "",
"deceased": fhir_json["deceasedBoolean"] if "deceasedBoolean" in fhir_json.keys() else "",
"gender": fhir_json["gender"] if "gender" in fhir_json.keys() else "",
"identifiers": identifiers,
"cpf": identifiers["tax"] if "tax" in identifiers.keys() else "",
"cns": identifiers["hc"] if "hc" in identifiers.keys() else "",
"name": fhir_json["name"][0]["text"] if "name" in fhir_json.keys() else "",
"nationality": nationality,
"naturalization": naturalization,
Expand Down

0 comments on commit f08c2a9

Please sign in to comment.