Medplum Graphql question: Does anyone know how to ...
# dev
k
Medplum Graphql question: Does anyone know how to query for an encounter so that it also includes the full patient information. I believe in the encounter, the patient is called the "subject", but I can't figure out how to structure the graphql query so that I can include all the fields from the
Patient
resource. If I query
subject
and ask for
reference
and
display
it works, but I need other values that are only in the
Patient
resource, for example,
birthdate
. Here's a query I have now,
Copy code
query getEncounters {
    EncounterList(service_provider:"Organization/xxxxxxx") {
        id
        participant {
            individual {
                reference
                display
            }
        }
        status
        subject {
            reference
            display
        }
        period {
            start
            end
        }
    }
}
164 Views