Hey all, when I query for `RelatedPerson`, I'm abl...
# dev
b
Hey all, when I query for
RelatedPerson
, I'm able to get
Patient
&
RelatedPerson
details except for
relationship {}
which is returning
null
. What is the correct way to query
relationship
on
RelatedPerson
?
Copy code
{
  PatientList(name: "P") {
    id
    ...
    
    RelatedPersonList(_reference:patient) {
      id
      ...
      relationship {
        text
        coding  {
          version
          system
        }
      }
    }
  }
}
relationship
data exists in the resource http://localhost:3000/RelatedPerson/UUID-HERE
Copy code
{
  "id": UUID-HERE,
  "resourceType": "RelatedPerson",
  ...
  "relationship": [
    {
      "coding": [
        {
          "system": "http://terminology.hl7.org/CodeSystem/v2-0131",
          "code": "N",
          "display": "Next-of-Kin"
        }
      ]
    }
  ]
}
r
Hi @bubbly_puppy_96894 would you mind re-posting in #1094022380659155005 ? I can spin up a debugging thread there?
At first glance I don't see anything incorrect, so we may need to go back and forth
b
Thanks Rahul. I'll look into this more and if there's no resolution, I'll repost to #1094022380659155005
159 Views