# Does the Archetype Designer support a local HAPI FHIR server?

**URL:** https://discourse.openehr.org/t/does-the-archetype-designer-support-a-local-hapi-fhir-server/5745
**Category:** Archetype Designer
**Created:** [23 September 2024 10:03 UTC](https://discourse.openehr.org/t/does-the-archetype-designer-support-a-local-hapi-fhir-server/5745 "2024-09-23T10:03:18Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![linforest](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/l/ac8455/32.png) [@linforest](https://discourse.openehr.org/u/linforest)
#### Post date: [23 September 2024 10:03 UTC](https://discourse.openehr.org/t/does-the-archetype-designer-support-a-local-hapi-fhir-server/5745/1 "2024-09-23T10:03:18Z")

</div>

Does the Archetype Designer support a local HAPI FHIR server ( FHIR Server Base URL: [http://localhost:8080/fhir](http://localhost:8080/fhir))? Such a feature would be likely meaningless for production and other simliar scenarios.

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

Thanks.

---

<div class="post-metadata">

### Author: ![linforest](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/l/ac8455/32.png) [@linforest](https://discourse.openehr.org/u/linforest)
#### Post date: [24 September 2024 02:20 UTC](https://discourse.openehr.org/t/does-the-archetype-designer-support-a-local-hapi-fhir-server/5745/2 "2024-09-24T02:20:17Z")

</div>

When setting [HAPI Test Server (R4 FHIR)](https://hapi.fhir.org/baseR4) as a Terminology Server for the Archetype Designer, it would also show the same Warning message (_No content to map due to end-of-input at [Suorce: (String)“”; line: 1, column: 0]_) on the Form tab although the server is _reachable and respond as expected_.

![image](https://discourse.openehr.org/uploads/default/original/2X/e/e17dc14b888fb94700902a26759376898e5ae3ae.png)

 ![image](https://discourse.openehr.org/uploads/default/original/2X/3/3faac0b5fc97313bf7dce52ef0b2589743588a67.jpeg)  
Sorry, I couldn’t snapshot such a hint ( when hovering over the WARNING icon) on the computer and I had to take a photo.

---

<div class="post-metadata">

### Author: ![borut.fabjan](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/b/d78d45/32.png) [@borut.fabjan](https://discourse.openehr.org/u/borut.fabjan)
#### Post date: [26 September 2024 12:23 UTC](https://discourse.openehr.org/t/does-the-archetype-designer-support-a-local-hapi-fhir-server/5745/3 "2024-09-26T12:23:03Z")

</div>

Hi Lin,

AD can access only FHIR TS server(s) reachable through internet.

---

<div class="post-metadata">

### Author: ![borut.fabjan](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/b/d78d45/32.png) [@borut.fabjan](https://discourse.openehr.org/u/borut.fabjan)
#### Post date: [26 September 2024 12:30 UTC](https://discourse.openehr.org/t/does-the-archetype-designer-support-a-local-hapi-fhir-server/5745/4 "2024-09-26T12:30:45Z")

</div>

Hi Lin,

I’ve just configured the HAPI server and it worked, but response is at times super slow (\>30s).

 ![Screenshot 2024-09-26 at 14.17.43](https://discourse.openehr.org/uploads/default/original/2X/6/6de3cd803e5238c665113d6ed39f26d586711e82.png)

 ![Screenshot 2024-09-26 at 14.20.51](https://discourse.openehr.org/uploads/default/original/2X/c/c32cfb87aa5c66c5ace940c055f44ea7e837b2e4.png)

---

<div class="post-metadata">

### Author: ![linforest](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/l/ac8455/32.png) [@linforest](https://discourse.openehr.org/u/linforest)
#### Post date: [26 September 2024 14:48 UTC](https://discourse.openehr.org/t/does-the-archetype-designer-support-a-local-hapi-fhir-server/5745/5 "2024-09-26T14:48:34Z")

</div>

> [@borut.fabjan](#):
>
> I’ve just configured the HAPI server and it worked,

Ah, interesting. Thanks, @borut.fabjan.  
I’ll try the configuration of the HAPI FHIR test server again.

---

<div class="post-metadata">

### Author: ![linforest](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/l/ac8455/32.png) [@linforest](https://discourse.openehr.org/u/linforest)
#### Post date: [27 September 2024 01:15 UTC](https://discourse.openehr.org/t/does-the-archetype-designer-support-a-local-hapi-fhir-server/5745/6 "2024-09-27T01:15:41Z")

</div>

The list of available ValueSets on the [HAPI FHIR test server](http://hapi.fhir.org/baseR4) can be loaded on the pop-up dialog _Add binding for terminology_:

 ![image](https://discourse.openehr.org/uploads/default/original/2X/5/524d6a6ce89c981bad45d577e054cca4ac5cf8ea.png)

But the loading process is apparently slow indeed.

![image](https://discourse.openehr.org/uploads/default/original/2X/7/778bc57930841eed751988d93409f886b29ca755.png)

It doesn’t seem to be able to load or parse the contents of a given ValueSet in its entirety. Not very stable/reliable.

 ![image](https://discourse.openehr.org/uploads/default/original/2X/2/28f38cc4b74c829cfcbd87f6e64dfa775f8d6e5f.png)

Therefore, the dropdown list of the tab _Form_ couldn’t be populated (i.e., no options):

![image](https://discourse.openehr.org/uploads/default/original/2X/8/81a31c7eebbfd9fbfcae3dd157d70964f5e0fff1.png)

Both the latter two issues above might be due to the **slow** loading process.

**Note** :

- ValueSet for testing: [ValueSet - Cigarette Smoking Before and During Pregnancy](https://hapi.fhir.org/baseR4/ValueSet/38843029?_format=html/json)

Core Content of the ValueSet:

```auto
...
"compose": {
    "include": [ {
      "system": "http://loinc.org",
      "concept": [ {
        "code": "64794-1",
        "display": "In the 3 months before you got pregnant, how many cigarettes did you smoke on an average day [PhenX]"
      }, {
        "code": "87298-6",
        "display": "Cigarettes smoked per day by Mother--1st trimester"
      }, {
        "code": "87299-4",
        "display": "Cigarettes smoked per day by Mother--2nd trimester"
      }, {
        "code": "64795-8",
        "display": "In the last 3 months of your pregnancy, how many cigarettes did you smoke on an average day [PhenX]"
      } ]
    } ]
  }

```

---

<div class="post-metadata">

### Author: ![linforest](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/l/ac8455/32.png) [@linforest](https://discourse.openehr.org/u/linforest)
#### Post date: [27 September 2024 06:31 UTC](https://discourse.openehr.org/t/does-the-archetype-designer-support-a-local-hapi-fhir-server/5745/7 "2024-09-27T06:31:41Z")

</div>

When trying another very simple ValueSet (totally irrelevant but just for testing) and it worked perfectly.

 ![image](https://discourse.openehr.org/uploads/default/original/2X/7/7da3b09e2da34abadc3fceb0e1f3697ee416f9e7.png)

![image](https://discourse.openehr.org/uploads/default/original/2X/e/e9031b1a88a6c657d6469cb9d10116ef21058d44.png)
