FHIR Chat · Conditional Update URL Syntax · implementers

Stream: implementers

Topic: Conditional Update URL Syntax


view this post on Zulip Simone Heckmann (Mar 14 2016 at 13:02):

I just filed a tracker item because I found an inconsistency in the description of the conditional update url syntax:
http://hl7-fhir.github.io/http.html#2.1.0.10.2
Is it
PUT [base]/[type]/?[search parameters] as in the definition
or
PUT /Observation?identifier=http://my-lab-system|123 as in the example?
or in other words: is there a "/" between type and parameters or not?

HAPI doesn't seem to care
HEALTHINTERSECTIONS returns "Bad syntax" on both

view this post on Zulip Simone Heckmann (Mar 14 2016 at 13:09):

@James Agnew : BTW I am currently testing conditional Updates. There seems to be a difference.

<Encounter xmlns="http://hl7.org/fhir">
    <patient>
         <reference value="Patient?given=Heute"/>
   </patient>
</Encounter>

returns Invalid resource reference found at path[Encounter.patient] - Does not contain resource type
whereas

<Encounter xmlns="http://hl7.org/fhir">
    <patient>
        <reference value="Patient/?given=Heute"/>
    </patient>
</Encounter>

returns Resource Patient/?given=Heute not found, specified in path: Encounter.patient
Although the search criteria matches exactly one Patient.

view this post on Zulip Jason Walonoski (Mar 14 2016 at 13:13):

@Simone Heckmann So you have conditional update references within an Encounter.patient.reference? Are you updating the Encounter? I don't understand what this means.

view this post on Zulip Simone Heckmann (Mar 14 2016 at 13:15):

We're practicing for this connectathon track ;-)
http://wiki.hl7.org/index.php?title=201605_Conditional_Reference_Connectathon_Proposal

view this post on Zulip Simone Heckmann (Mar 14 2016 at 13:16):

BTW: how do I get my block code snippets to look pretty on ZULIP?

view this post on Zulip Jason Walonoski (Mar 14 2016 at 13:16):

You can use back-ticks code here

view this post on Zulip Jason Walonoski (Mar 14 2016 at 13:17):

`\``

view this post on Zulip Jason Walonoski (Mar 14 2016 at 13:17):

Or three back ticks

view this post on Zulip Jason Walonoski (Mar 14 2016 at 13:18):

 `code here`
 three will give you a code block

view this post on Zulip Simone Heckmann (Mar 14 2016 at 13:19):

Weird. I am using three ticks an I get all lines as seperate blocks...

view this post on Zulip Simone Heckmann (Mar 14 2016 at 13:26):

Ah. got it. The ticks want a line by themselves...

view this post on Zulip James Agnew (Mar 14 2016 at 15:20):

Hi Simone- I haven't deployed a new version of the server yet that supports the new experimental syntax. Will do that today.

view this post on Zulip Simone Heckmann (Mar 14 2016 at 15:44):

Oh ok! The error code looked like the server already tried to resolve the reference :)

view this post on Zulip Grahame Grieve (Mar 14 2016 at 20:09):

" is there a "/" between type and parameters or not? - no. What is my server returning bad syntax for?

view this post on Zulip Simone Heckmann (Mar 14 2016 at 20:21):

@Grahame Grieve : e.G. a PUT to this URL: Patient?identifier=http://kvnummer.gkvnet.de/|G1 returns Bad Syntax in Patient even though a search for the same condition returns exactly 1 resource

view this post on Zulip Grahame Grieve (Mar 14 2016 at 20:22):

what's the full packet?

view this post on Zulip Simone Heckmann (Mar 14 2016 at 20:24):

<?xml version="1.0" encoding="UTF-8"?>
<Patient xmlns="http://hl7.org/fhir">
    <identifier>
        <system value="http://kvnummer.gkvnet.de/"/>
        <value value ="G1"/>
    </identifier>
    <name>
        <family value="Test"/>
        <given value="Conditionally-Updated 1"/>
        <prefix value="von"/>
    </name>
    <gender value="female"/>
    <birthDate value="2016-03-14"/>
</Patient>

view this post on Zulip Grahame Grieve (Mar 14 2016 at 20:25):

where's the reference then?

view this post on Zulip Simone Heckmann (Mar 14 2016 at 20:26):

Huh? No I'm trying conditional update

view this post on Zulip Grahame Grieve (Mar 14 2016 at 20:26):

so you are posting what to where?

view this post on Zulip James Agnew (Mar 14 2016 at 20:26):

Sorry Simone, I broke my server trying to redeploy.. and then locked myself out of it. Grrrrrrr.... It'll be down for a bit.

view this post on Zulip Simone Heckmann (Mar 14 2016 at 20:29):

I am putting the resource above to http://fhir-dev.healthintersections.com.au/open/Patient?identifier=http://kvnummer.gkvnet.de/|G1

view this post on Zulip Simone Heckmann (Mar 14 2016 at 20:29):

or alternately to ...Patient?name=Conditionally with the same result

view this post on Zulip Simone Heckmann (Mar 14 2016 at 20:30):

@James Agnew : No problem, It's bedtime over here anyway ;-)

view this post on Zulip Grahame Grieve (Mar 14 2016 at 20:31):

ok I understand now. the syntax above is correct. I will look at why it's not working in 48 hours (mini-crunch here)

view this post on Zulip Simone Heckmann (Mar 14 2016 at 20:37):

Cool, thanks.

view this post on Zulip James Agnew (Mar 15 2016 at 19:05):

Ok, I finally got back into my server.... what a nightmare.

Conditional syntax is supported now.

view this post on Zulip Simone Heckmann (Mar 17 2016 at 08:47):

Awesome :) I will see if I can do some testing. Just to avoid misunderstandings: You support that on plain REST as well as on processing bundles, correct?


Last updated: Apr 12 2022 at 19:14 UTC