stefant1707
09/21/2023, 12:33 AM{
"resourceType": "Bundle",
"type": "searchset",
"entry": [],
"link": [
{
"relation": "self",
"url": "https://api.medplum.com/fhir/R4/CareTeam?_count=20&participant=08f3066b-0602-4de8-8b32-403498f43e57"
},
{
"relation": "first",
"url": "https://api.medplum.com/fhir/R4/CareTeam?_count=20&_offset=0&participant=08f3066b-0602-4de8-8b32-403498f43e57"
}
]
}
zero entries, am I missing something obvious here?
Thanks!rahul1
09/21/2023, 3:57 PMCareTeam resource, (non-PII) that I can use to repro?rahul1
09/21/2023, 4:04 PM{
"subject": {
"reference": "Patient/f04fde56-88cf-4713-a11a-cbe8ee9f2242"
},
"encounter": {
"reference": "Encounter/dee5f23e-22d2-4cb9-87da-f577dc5ecb24"
},
"participant": [
{
"role": [
{
"coding": [
{
"system": "http://snomed.info/sct",
"code": "116154003",
"display": "Patient"
}
],
"text": "Patient"
}
],
"member": {
"reference": "Patient/f04fde56-88cf-4713-a11a-cbe8ee9f2242",
"display": "Mr. Lucien408 Bosco882"
}
},
{
"role": [
{
"coding": [
{
"system": "http://snomed.info/sct",
"code": "223366009",
"display": "Healthcare professional (occupation)"
}
],
"text": "Healthcare professional (occupation)"
}
],
"member": {
"reference": "Practitioner/442a2596-656e-40f3-bf38-e94791d5684b",
"display": "Dr. Willena258 Oberbrunner298"
}
},
{
"role": [
{
"coding": [
{
"system": "http://snomed.info/sct",
"code": "224891009",
"display": "Healthcare services (qualifier value)"
}
],
"text": "Healthcare services (qualifier value)"
}
],
"member": {
"reference": "Organization/89414e2a-fc3f-4e07-8450-00925c23da32",
"display": "LOWELL GENERAL HOSPITAL"
}
}
]
"resourceType": "CareTeam"
}stefant1707
09/21/2023, 4:14 PMstefant1707
09/21/2023, 5:04 PMstefant1707
09/21/2023, 5:04 PMstefant1707
09/21/2023, 5:11 PMrahul1
09/21/2023, 7:30 PMhttps://app.medplum.com/CareTeam?participant=Practitioner/442a2596-656e-40f3-bf38-e94791d5684b
One thing I noticed about the search you sent was that you didn't specify the resourceType in your search by reference:
> GET {{medplum_host}}/fhir/R4/CareTeam?participant=f83cfbd2-4080-44dc-9142-dd89217dca60
should be
> GET {{medplum_host}}/fhir/R4/CareTeam?participant=Practitioner/f83cfbd2-4080-44dc-9142-dd89217dca60
You can see our docs on "Search by Reference" for more information: https://www.medplum.com/docs/search/basic-search#searching-by-referencestefant1707
09/21/2023, 7:49 PMstefant1707
09/21/2023, 7:49 PMstefant1707
09/21/2023, 7:49 PM