# EHRbase: Stuck in "2.5. Step 4: Load Data"

**URL:** https://discourse.openehr.org/t/ehrbase-stuck-in-2-5-step-4-load-data/2885
**Category:** Platform
**Tags:** ehrbase
**Created:** [2 August 2022 07:51 UTC](https://discourse.openehr.org/t/ehrbase-stuck-in-2-5-step-4-load-data/2885 "2022-08-02T07:51:57Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![daguanyu](https://discourse.openehr.org/user_avatar/discourse.openehr.org/daguanyu/32/2117_2.png) [@daguanyu](https://discourse.openehr.org/u/daguanyu)
#### Post date: [2 August 2022 07:51 UTC](https://discourse.openehr.org/t/ehrbase-stuck-in-2-5-step-4-load-data/2885/1 "2022-08-02T07:51:57Z")

</div>

I’m new to EHRBase and use docker images to learn EHRbase. According to the document, I have successfully performed the first three steps of “2. Getting Started” (including Data Models, Upload a Template and Create an EHR) .

When trying Step 4: Load Data:

I firstly built the Client Library from “[GitHub - nedap/ehrbase\_client\_library](https://github.com/nedap/ehrbase_client_library)”. But when I tried to create the Java classes from the OPT, “nullPointerException” was reported. It seems that the Client Library cannot correctly analysis the OPT. Also it seems that “/nedap/ehrbase\_client\_library” is no longer maintained.

Then, I tried to use Flat Format. I tried to send request to “/ehrbase/rest/ecis/v1/composition” according to the “Flat.postman\_collection” and the document. but it returned “‘error’: ‘Bad Request’”. So I wonder if there is a detailed document for the API endpoints for the Flat Format to help me use the APIs properly?

What should I do to Load Data successfully?

---

<div class="post-metadata">

### Author: ![birger.haarbrandt](https://discourse.openehr.org/user_avatar/discourse.openehr.org/birger.haarbrandt/32/24_2.png) [@birger.haarbrandt](https://discourse.openehr.org/u/birger.haarbrandt)
#### Post date: [2 August 2022 10:54 UTC](https://discourse.openehr.org/t/ehrbase-stuck-in-2-5-step-4-load-data/2885/2 "2022-08-02T10:54:09Z")

</div>

Hi @daguanyu,

please have a try with this Postman Collection:

[openEHR WebTemplates Example.postman\_collection.json](https://discourse.openehr.org/uploads/short-url/4eCgulcNFI5noCqAQRTN7z9lDBe.json) (1.1 MB)

Please let me know if this works for you!

Best,

Birger

---

<div class="post-metadata">

### Author: ![pablo](https://discourse.openehr.org/user_avatar/discourse.openehr.org/pablo/32/3505_2.png) [@pablo](https://discourse.openehr.org/u/pablo)
#### Post date: [2 August 2022 11:37 UTC](https://discourse.openehr.org/t/ehrbase-stuck-in-2-5-step-4-load-data/2885/3 "2022-08-02T11:37:40Z")

</div>

Hi @daguanyu you can use the [openEHR Toolkit](https://toolkit.cabolabs.com/) to generate a JSON based on your operational template (OPT) and just send a POST request to EHRBASE with that payload.

The toolkit generates a COMPOSITION with random data based on your template. Then, if you want, you can change some values manually of via software, then commit the composition.

For me (I do a lot of testing) it’s the fastest way of having some data loaded for testing.

Hope that helps.

---

<div class="post-metadata">

### Author: ![daguanyu](https://discourse.openehr.org/user_avatar/discourse.openehr.org/daguanyu/32/2117_2.png) [@daguanyu](https://discourse.openehr.org/u/daguanyu)
#### Post date: [3 August 2022 02:03 UTC](https://discourse.openehr.org/t/ehrbase-stuck-in-2-5-step-4-load-data/2885/4 "2022-08-03T02:03:14Z")

</div>

hi @pablo , I tried and failed to register:

 ![image](https://discourse.openehr.org/uploads/default/original/2X/3/378d809413e9b6d04f9312584ed4531d8538516d.png)

---

<div class="post-metadata">

### Author: ![daguanyu](https://discourse.openehr.org/user_avatar/discourse.openehr.org/daguanyu/32/2117_2.png) [@daguanyu](https://discourse.openehr.org/u/daguanyu)
#### Post date: [3 August 2022 02:46 UTC](https://discourse.openehr.org/t/ehrbase-stuck-in-2-5-step-4-load-data/2885/5 "2022-08-03T02:46:43Z")

</div>

Hi @birger.haarbrandt .

thank you very much. this one is more detailed and easier to be understood.

thank you again for your help!

---

<div class="post-metadata">

### Author: ![pablo](https://discourse.openehr.org/user_avatar/discourse.openehr.org/pablo/32/3505_2.png) [@pablo](https://discourse.openehr.org/u/pablo)
#### Post date: [3 August 2022 12:40 UTC](https://discourse.openehr.org/t/ehrbase-stuck-in-2-5-step-4-load-data/2885/6 "2022-08-03T12:40:31Z")

</div>

Sorry to hear about that, let me look what is going on with the sign up form.

@daguanyu do you see the recaptcha box in the sign up form? It should appear there at the bottom

 ![Screenshot 2022-08-03 at 11-42-19 CaboLabs openEHR Toolkit (CoT)](https://discourse.openehr.org/uploads/default/original/2X/0/06aa534c6d7f3a09a6a7a9414153b79393e9c924.png)
