Charlie from Imagine
02/19/2024, 6:17 PMgraphql
query GetPractitionerPatients($practitionerReference: String!, $offset: Int, $pageSize: Int) {
CareTeamConnection(participant: $practitionerReference, _offset: $offset, _count: $pageSize) {
count
pageSize
offset
edges {
resource {
subject {
reference
resource {
... on Patient {
id
name {
given
family
}
birthDate
extension {
valueCode
url
}
meta {
tag {
system
code
display
}
}
impressions: ClinicalImpressionList(_reference: patient) {
id
code {
coding {
system
code
}
}
status
finding {
itemCodeableConcept {
coding {
code
display
system
}
}
}
}
}
}
}
}
}
}
}
But I also need to filter by patient name as well. What would be the recommend way to implement this type of search, but with a filter option on patient name?Charlie from Imagine
02/19/2024, 6:43 PMCharlie from Imagine
02/19/2024, 6:45 PMmedplum get 'CareTeam?participant=$practitionerRef&subject:Patient.name=$name
rahul1
02/19/2024, 7:26 PMrahul1
02/19/2024, 7:26 PMrahul1
02/19/2024, 7:26 PMCharlie from Imagine
02/19/2024, 7:38 PMCharlie from Imagine
02/19/2024, 7:39 PM