Stream: hapi
Topic: Using Path for accessing object properties
robert karp (Aug 24 2021 at 13:57):
I'm newbie using Hapi Model Objects. I'm looking for an example or documentation on how to use a path represented as a string for accessing a property. , Something like this "/patient/name" to get the name array from a Patient Object. I need getters and setters functionality using a path represented as a string.
Jens Villadsen (Aug 24 2021 at 14:08):
Thats more like graphql that you are looking for
robert karp (Aug 24 2021 at 14:30):
I'm doing this inside a Hapi Plain Server in java code. I've created a patient object from some data I fetch from a non-FHIR seervice. I would like to have a list of rules that I can use to perform operations on the patient object. So that is why I need a way to access a property from a json path.
I 'm not looking to call a FHIR service so I not seeing how graphql is going to help.
robert karp (Aug 24 2021 at 14:53):
I'm looking for something like JsonPath functionality for accessing JsonObjects,
Last updated: Apr 12 2022 at 19:14 UTC