Skip to content

Merge patient_id with FSS filter #82

Description

@rcdilorenzo

The patient_id argument needs to merge just like with the must FSS query.

phc.Observation.get_data_frame(patient_id="41e6a5bc-7b8a-4434-b38b-0da652d6364e", query_overrides={
    "where": {
        "type": "elasticsearch",
        "query": {
            "bool": {
                "filter": [
                    {"term": {"code.coding.system.keyword": "http://my-system-example.org"}},
                    {"term": {"code.coding.code.keyword": "123456-7"}}
                ]
            }
        }
    }
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    phc.easyRelated to the phc.easy modules

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions