diff --git a/fhir_utils/fhir/patient/parsers.py b/fhir_utils/fhir/patient/parsers.py index 39cbdde..22a7059 100644 --- a/fhir_utils/fhir/patient/parsers.py +++ b/fhir_utils/fhir/patient/parsers.py @@ -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,