Skip to content

Commit 9f46271

Browse files
committed
Query resourceType safely
1 parent 58341ad commit 9f46271

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fhirsnake/watch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def process_file(self, file_path):
4848

4949
if (
5050
self.external_questionnaire_fce_fhir_converter_url
51-
and resource["resourceType"] == "Questionnaire"
51+
and resource.get("resourceType") == "Questionnaire"
5252
):
5353
try:
5454
resource = convert_questionnaire_fce_to_fhir(

0 commit comments

Comments
 (0)