# Does the Archetype Designer support a local HAPI FHIR server? **Category:** [Archetype Designer](https://discourse.openehr.org/c/archetype-designer/30) **Created:** 2024-09-23 10:03 UTC **Views:** 117 **Replies:** 6 **URL:** https://discourse.openehr.org/t/does-the-archetype-designer-support-a-local-hapi-fhir-server/5745 --- ## Post #1 by @linforest Does the Archetype Designer support a local HAPI FHIR server ( FHIR Server Base URL: http://localhost:8080/fhir)? Such a feature would be likely meaningless for production and other simliar scenarios. ![image|686x420](upload://8onuGpuy4vZ6Yr9jO5w2082c450.png) Thanks. --- ## Post #2 by @linforest 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|686x376](upload://waMRj9DAXeyICkwDxij3KWFlmI6.png) ![image|690x65](upload://95dUQ5hTIFvdBho7Nv58t0arEIn.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. --- ## Post #3 by @borut.fabjan Hi Lin, AD can access only FHIR TS server(s) reachable through internet. --- ## Post #4 by @borut.fabjan 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|690x386, 50%](upload://fG86MvJZuOYK7Sp4vMkLJQ3laiS.png) ![Screenshot 2024-09-26 at 14.20.51|690x391](upload://rQBtQqWoVPLtAVoW7bURzsG2g5u.png) --- ## Post #5 by @linforest [quote="borut.fabjan, post:4, topic:5745"] I’ve just configured the HAPI server and it worked, [/quote] Ah, interesting. Thanks, @borut.fabjan. I'll try the configuration of the HAPI FHIR test server again. --- ## Post #6 by @linforest 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|464x500](upload://bK50VFd0ds4nPw8qULhPUqnBI2S.png) But the loading process is apparently slow indeed. ![image|686x257](upload://h3yhdNW6tqPbHxjQUbP00y3wdOl.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|690x396](upload://5QgTVn8mX6j8VvoacK0ysmBt7n9.png) Therefore, the dropdown list of the tab *Form* couldn't be populated (i.e., no options): ![image|296x120](upload://iuP3BbFqf0y8h8MID6PKx3TRBMl.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: ``` ... "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]" } ] } ] } ``` --- ## Post #7 by @linforest When trying another very simple ValueSet (totally irrelevant but just for testing) and it worked perfectly. ![image|466x500](upload://hVso2OpPY6l3leKtGCGwy0L68XZ.png) ![image|479x147](upload://xfjU6vl3BLIrR9rqubHqz8aa4K0.png) --- **Canonical:** https://discourse.openehr.org/t/does-the-archetype-designer-support-a-local-hapi-fhir-server/5745 **Original content:** https://discourse.openehr.org/t/does-the-archetype-designer-support-a-local-hapi-fhir-server/5745