bnapora
12/18/2023, 8:20 PMrahul1
12/18/2023, 9:31 PMbnapora
12/18/2023, 11:09 PMrahul1
12/19/2023, 12:03 AMbnapora
12/19/2023, 12:58 AMrahul1
12/19/2023, 2:56 AMConditionList(_reference: patient, _count: 100, _sort: "-_lastUpdated")
^ this can be read as "Find all the conditions who are linked to the current Patient via the Condition.patient reference parameter"rahul1
12/19/2023, 2:56 AMrahul1
12/19/2023, 2:56 AMrahul1
12/19/2023, 2:57 AMrahul1
12/19/2023, 3:11 AMresource field inside the query, this is a forward reference search (https://www.medplum.com/docs/graphql/basic-queries#resolving-nested-resources-with-the-resource-element)rahul1
12/19/2023, 3:13 AMquery{
ServiceRequest(id: "2987ea86-a59b-42c4-8660-331562d817aa") {
id
subject {
resource {
...on Patient {
id
name {given, family}
}
}
}
DiagnosticReportList(_reference:based_on) {
id,
imagingStudy {
resource {
...on ImagingStudy {
id
}
}
}
}
}
}bnapora
12/19/2023, 5:43 PMmessage": "invalid input syntax for type uuid: \"1EKG4-TEST-RG56\"",
"path": [
"ServiceRequest",
"subject",
"resource"
],
I'll dig around and see if its some silly syntax issue.bnapora
12/19/2023, 11:50 PMrahul1
12/20/2023, 5:25 PMrahul1
12/20/2023, 5:25 PMrahul1
12/20/2023, 5:26 PMids are UUIDs.
https://www.medplum.com/docs/access/projects#superadminrahul1
12/20/2023, 5:26 PMbnapora
12/20/2023, 8:44 PMbnapora
12/20/2023, 8:52 PMbnapora
12/20/2023, 8:52 PM{
# ServiceRequest(id: "7ccf0ac5-f5c6-4828-9c1e-dcffcff7e45c") {
ServiceRequestList {
resourceType
id
status
intent
code {
coding {
id
display
code
}
}
patient: subject {
resource {
...on Patient {
id
name {given, family}
}
}
}
DiagnosticReportList(_reference:based_on) {
resourceType
id,
status,
code {
coding {
id
display
code
}
}
imagingStudy {
resource {
...on ImagingStudy {
resourceType
id
identifier {
system
value
}
procedureCode {
coding {
display
code
}
}
numberOfSeries
numberOfInstances
series {
started
modality {
code
display
}
bodySite {
code
display
}
}
}
}
}
}
}
}rahul1
12/20/2023, 10:24 PM