Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions cgpclient/fhir.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,15 @@ def search_for_tasks(self, search_params: FHIRConfig | None = None) -> list[Task
)
)

bundle: Bundle = self.search_for_fhir_resource(
resource_type=Task.__name__,
query_params=query_params,
)

if bundle.entry:
return [entry.resource for entry in bundle.entry]
return []

def search_for_document_references(
self, search_params: FHIRConfig | None = None
) -> list[DocumentReference]:
Expand Down