Stream: implementers
Topic: FHIR test server on Linux
Günter Zöchbauer (Sep 27 2016 at 08:05):
Is there an easy way to set up an FHIR server for development like the one at http://fhirtest.uhn.ca/baseDstu2 like a Docker image?
Grahame Grieve (Sep 27 2016 at 08:05):
you want the hapi cli
Günter Zöchbauer (Sep 27 2016 at 08:07):
thanks! Saw that mentioned already.
Günter Zöchbauer (Sep 27 2016 at 08:31):
Thanks again. Was easy to set up and seems to work fine already :)
Günter Zöchbauer (Sep 27 2016 at 09:05):
I run hapi-fhir-cli upload-examples -t http://localhost:8080/baseDstu2 -c
and all messages indicate it succeeded, but querying for any resource type always returns 0 results. Any idea?
Günter Zöchbauer (Sep 27 2016 at 09:33):
This are the last lines of the output
11:30:54 INFO ca.uhn.fhir.cli.ExampleDataUploader - Discarding unknown reference: ValueSet/v2-0371 11:30:54 INFO ca.uhn.fhir.cli.ExampleDataUploader - Discarding unknown reference: ValueSet/v3-PurposeOfUse 11:30:54 INFO ca.uhn.fhir.cli.ExampleDataUploader - Discarding unknown reference: ValueSet/v3-ActCode 11:30:54 INFO ca.uhn.fhir.cli.ExampleDataUploader - 2326 good references 11:30:54 INFO ca.uhn.fhir.cli.ExampleDataUploader - Final bundle: 1162 entries 11:30:54 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 362 remaining 11:30:55 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 351 remaining 11:30:55 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 340 remaining 11:30:55 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 329 remaining 11:30:56 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 318 remaining 11:30:56 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 307 remaining 11:30:56 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 296 remaining 11:30:56 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 285 remaining 11:30:57 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 274 remaining 11:30:57 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 263 remaining 11:30:57 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 252 remaining 11:30:57 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 241 remaining 11:30:57 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 230 remaining 11:30:57 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 219 remaining 11:30:57 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 208 remaining 11:30:57 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 197 remaining 11:30:58 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 186 remaining 11:30:58 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 175 remaining 11:30:58 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 164 remaining 11:30:58 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 153 remaining 11:30:58 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 142 remaining 11:30:58 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 131 remaining 11:30:58 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 120 remaining 11:30:58 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 109 remaining 11:30:58 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 98 remaining 11:30:58 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 87 remaining 11:30:58 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 76 remaining 11:30:58 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 65 remaining 11:30:58 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 54 remaining 11:30:58 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 43 remaining 11:30:58 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 32 remaining 11:30:58 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 21 remaining 11:30:58 INFO ca.uhn.fhir.cli.ExampleDataUploader - About to upload 11 examples in a transaction, 10 remaining
Does this look correct?
About to upload 11 examples
looks a bit weird to me.
Günter Zöchbauer (Sep 27 2016 at 09:34):
Is this the correct stream for this kind of questions, or should I use #hapi ?
Günter Zöchbauer (Sep 27 2016 at 09:49):
hapi-fhir-cli upload-definitions -t http://localhost:8080/baseDstu2
produces about 30 warnings like
11:47:33 WARN c.u.fhir.cli.ValidationDataUploader - Failed to upload StructureDefinition/VisionPrescription - HTTP 400 Bad Request: Resource contains external reference to URL "http://hl7.org/fhir/ValueSet/vision-product" but this server is not configured to allow external referenc
but gets 1067 ValueSet
s and 35 StructureDefinition
s loaded.
Grahame Grieve (Sep 27 2016 at 12:43):
perhaps you could ask on the HAPI stream?
Günter Zöchbauer (Sep 27 2016 at 12:47):
will try, thanks
Santiago Aso (Sep 27 2016 at 13:43):
Hi @Günter Zöchbauer , I think is due to the lines 299 to 302 from https://github.com/jamesagnew/hapi-fhir/blob/master/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/ExampleDataUploader.java
if (true) {
subResourceList.clear();
continue;
}
It halts the execution. But as Grieve says, better ask on the proper stream :)
Günter Zöchbauer (Sep 27 2016 at 14:00):
@Santiago Aso thanks for investigating. I'll post a reference to your comment in the hapi stream where I re-posted the question.
Last updated: Apr 12 2022 at 19:14 UTC