Complete sample patients generator

Location is supposed to be "A url at which the document can be accessed" based on the FHIR spec. Does not say whether this is a fully qualified URL or can be a relative URL etc. So here we are setting the URL to a URL relative to the FHIR API server whereas the protocol/host/port are implied. In this instance, the / indicates the root of the server.

From: Josh Mandel <notifications@github.com<mailto:notifications@github.com>>
Reply-To: smart-on-fhir/sample-patients <reply@reply.github.com<mailto:reply@reply.github.com>>
Date: Tuesday, July 29, 2014 4:48 PM
To: smart-on-fhir/sample-patients <sample-patients@noreply.github.com<mailto:sample-patients@noreply.github.com>>
Cc: "Schwertner, Nikolai" <Nikolai.Schwertner@childrens.harvard.edu<mailto:Nikolai.Schwertner@childrens.harvard.edu>>
Subject: Re: [sample-patients] Complete sample patients generator (#1)


In bin/fhir_templates/document.xml:

> +            <display value="{{d.display}}"/>
> +          </coding>
> +        </type>
> +        <author>
> +          <reference value="Practitioner/1234"/>
> +        </author>
> +        <created value="{{d.date}}"/>
> +        <indexed value="{{now}}"/>
> +        <status value="current"/>
> +        <description value="{{d.title}}"/>
> +        <mimeType value="{{d.mime_type}}"/>
> +        {%- if d.size and d.hash %}
> +        <size value="{{d.size}}"/>
> +        <hash value="{{d.hash}}"/>
> +        {%- endif %}
> +        <location value="/{{d.binary_id}}"/>


Is there a reason for the / prefix?

—
Reply to this email directly or view it on GitHub<https://github.com/smart-on-fhir/sample-patients/pull/1/files#r15551283>.