Hapi-Fhir-Cli (command line)

409 views
Skip to first unread message

Armin Weiner

unread,
Jan 10, 2016, 8:52:23 PM1/10/16
to HAPI FHIR
I have downloaded the client and I'm running the server just fine.
I have tried to use the upload-examples option to populate the DB - but I'm behind a company proxy and setting up the HTTP_PROXY environment variable doesn't help..

Can someone recommend another option? (I can download the example-json file from the web address with no problems).
Is there a hidden function to load from a zip file?

Thx

Armin 

James Agnew

unread,
Jan 14, 2016, 6:03:31 PM1/14/16
to Armin Weiner, HAPI FHIR
Hi Armin,

Unfortunately the CLI tool doesn't yet support proxy settings. That would be useful, I'd agree.

If you wanted to file an issue about this, that would be good. Even better, if by any chance you wanted to take a crack at implementing proxy support in the tool, that would be cool too.

FWIW, the class which handles the examples upload lives here: https://github.com/jamesagnew/hapi-fhir/blob/master/hapi-fhir-cli/src/main/java/ca/uhn/fhir/cli/ExampleDataUploader.java

Cheers,
James

--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To post to this group, send email to hapi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/9de656dc-80ae-43eb-bdeb-b7420ddb1f0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Adam Carbone

unread,
Feb 2, 2016, 4:22:32 PM2/2/16
to HAPI FHIR, armin....@gmail.com
Has there been any work at using the cli tool to upload your own set of data, from a local file... 

I can handle the local file part. 

I would be willing to help do the work to make this happen (need to do something like this anyway), if I could get some help to sort out the pieces that are part of the spec, from example data!

examples-json.zip file I see the following patterns of json files

  • <resource>-profile.canonical.json
  • <resource>-profile.json
  • <resource>-example.canonical.json
  • <resource>-example.json
So an actual example is this:

  • account-profile.canonical.json
  • account-profile.json
  • account-example.canonical.json
  • account-example.json

James Agnew

unread,
Feb 2, 2016, 9:31:37 PM2/2/16
to Adam Carbone, HAPI FHIR, Armin Weiner
Hi Adam,

Nope, we haven't done any work on that specific task. The CLI project is a pretty easy one to work with though compared to most of the library, if you wanted to have a shot at this we'd welcome the patch!

The canonical versions of the resources are basically the same resource as the non-canonical ones, but with a few simplifications. See http://hl7.org/fhir/xml.html#digsig for info on that. I actually had to ask Grahame, I've always wondered about this myself. :)

Cheers,
James

Adam Carbone

unread,
Feb 3, 2016, 8:53:11 AM2/3/16
to HAPI FHIR, adam.c...@villagerockinvestments.com, armin....@gmail.com
OK so what I would really like to do, is to combine any required system resources, from the official download examples-json.zip. Or am I misunderstanding the data? What are the profiles? Should I be getting all of those from that data and just installing our data for the examples? Still new as far as knowing all the details about the space itself. Would you be a good contact on this or is there someone that is a better resource for this particular sub space? you mentioned grahame would he be another additional resource... Also I know there is an upstream project ( https://github.com/smart-on-fhir/sample-patients ) that I believe generates the examples-json.zip should I look at starting there to tweak the values. 

Adam
Reply all
Reply to author
Forward
0 new messages