You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been able to create a JSON template for a SPARQL endpoint that works pretty well. However, I'm trying to now generate a structure that "conditionally" outputs one of three fields that all share the same root predicate but have different classes for the object. In the below example, the valueQuantity, valueCodeableConcept and valueString fields all originate from the predicate fhir:value.
I attempt to restrict them to different object classes in the $where clause with named variables. However, this does not produce the intended results if the fields are OPTIONAL. While the fields themselves are OPTIONAL, the class declarations in the $where clause seem to be absolute and will run independently of the fields in the translated SPARQL. Is there any way to fix these class declarations within the definition of the fields themselves using this package?
I have been able to create a JSON template for a SPARQL endpoint that works pretty well. However, I'm trying to now generate a structure that "conditionally" outputs one of three fields that all share the same root predicate but have different classes for the object. In the below example, the
valueQuantity
,valueCodeableConcept
andvalueString
fields all originate from the predicatefhir:value
.I attempt to restrict them to different object classes in the
$where
clause with named variables. However, this does not produce the intended results if the fields are OPTIONAL. While the fields themselves are OPTIONAL, the class declarations in the$where
clause seem to be absolute and will run independently of the fields in the translated SPARQL. Is there any way to fix these class declarations within the definition of the fields themselves using this package?The text was updated successfully, but these errors were encountered: