> For the complete documentation index, see [llms.txt](https://community-test.logicnets.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://community-test.logicnets.com/release-9/example-gallery/example-projects-for-parts/fhir-support-example-project.md).

# FHIR Support Example Project

Import the example application into your Designer workspace.

There are 2 ways to convert and test/run the example as a FHIRQuestionnaire:

1. ```
    Using the FHIRQuestionnaireTestHarness
   ```
2. ```
   Using the ExportGuidelineAPI
   ```

### FHIRQuestionnaire Test Harness

The FHIRQuestionnaire test harness is a tool integrated with the Designer. It converts the current Designer project or logicnet to a FHIRQuestionnaire format and starts a test page that runs the converted FHIR Questionnaire.

* Open the Test pane (1) and select the FHirQuestionnaireTestHarness (2). Click ***Test Project***.

  ![](https://2802811211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdFhfexCjZ5JMhwGzzywq%2Fuploads%2Fgit-blob-292521031630365e0cf3384fb3a518c2c3e4eb0d%2F0290c3de-f8d8-4c8f-8aeb-77c0e906e75e.png?alt=media)
* The system opens the test page and renders the FHIR Questionnaire (4).

  ![](https://2802811211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdFhfexCjZ5JMhwGzzywq%2Fuploads%2Fgit-blob-85a4c611912aa9cc6a9eaa046c172ec4bf91f7f6%2F10bd069d-f685-40e4-9198-ec42d16bdf28.png?alt=media)
* The test page has the following additional functions:
  * Show the generated questionnaire.
  * Show the questionnaire response based on the given answers.
  * Toggle button to hide/show “hidden” questionnaire items. These items are typically not shown to end-users but are very useful when you want to debug your application. For example, you can display or hide rule nodes:

![](https://2802811211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdFhfexCjZ5JMhwGzzywq%2Fuploads%2Fgit-blob-c3d00ab4465ea49b8d1943588a50178ad9a19e8a%2F2344fdc8-6279-4b77-b62f-301ab13c583a.png?alt=media)

![](https://2802811211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdFhfexCjZ5JMhwGzzywq%2Fuploads%2Fgit-blob-69085b4629f6b5426d19637fa5bff36e33a9e219%2Feb5e5b90-0494-49fc-984b-95b7a48a58e2.png?alt=media)

### ExportGuidelineAPI

You can use the ExportAPI to do the following:

1. Query available questionnaires.
2. Download an available questionnaire.
3. Download a test/demo client.

Follow the instructions below to access the ApiDoc, download a demo client, and download and run the demo FHIRQuestionnaire:

* Import the demo application into your Designer workspace.
* Add the fhirquestionaire tag to the project. This is required for the ExportAPI to determine which packages can be exported.

  ![](https://2802811211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdFhfexCjZ5JMhwGzzywq%2Fuploads%2Fgit-blob-1458236c74f918921bbdca7f553ed09022d91a87%2F4f5d80c7-c8c1-44d1-b7d7-348a4a71c545.png?alt=media)
* Publish the project.
* Create a user that can access the ExportAPI:
  * Open AccessManagement.
  * Select *Users*.
  * Select *New*.
  * Select *Type Server* and select *Add*.
  * Copy the Client-id to a temporary notepad or store it in your password manager.
  * Select the generated new password and copy it to a temporary notepad or store it in your password manager.
  * Select *Save*.
  * Select *Groups*.
  * Select *New*.
  * Enter a group name, such as *export-api-users.*
  * Select *Add*.
  * Add the server user you just created to the group as local user.
  * Add the group roles by selecting the *ExportGuidelineAPI* and selecting the *api* role. Click *Assign* and repeat these steps for the *testapp* role.

    ![](https://2802811211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdFhfexCjZ5JMhwGzzywq%2Fuploads%2Fgit-blob-dea3ae5419d8e987e5c2817f37ff744e9ac33725%2Fd03c944d-ed87-4390-8c88-8f99873cb887.png?alt=media)
  * Save the group configuration by selecting *Save*.
* Your installation provides an online documentation set for the export API that you can access at **https\:////ApiDoc**. Select *ExportGuidelineAPI*.

  ![](https://2802811211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdFhfexCjZ5JMhwGzzywq%2Fuploads%2Fgit-blob-b6abae96afbffc416f8600c14842e5b62d8a2a45%2Fb4166b1b-d682-40e3-a6cd-c29d4442edd1.png?alt=media)
* Select *Authorize* and fill in the client-id and the secret you generated. Select *Authorize* and *Close*.

  ![](https://2802811211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdFhfexCjZ5JMhwGzzywq%2Fuploads%2Fgit-blob-fe6317e1c41070838ba67a4d12bbee519dd9afe7%2F09195118-4d07-48dd-b9b9-a245a8dec107.png?alt=media)
* Download a test/demo application:
  * Select *testapp* (1).
  * Select *Execute* (2).
  * Select *Try Out*.
  * Select *Download* (3).

    ![](https://2802811211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdFhfexCjZ5JMhwGzzywq%2Fuploads%2Fgit-blob-a9c537f93b6ba0459dbbb88d578be770cd8fc18e%2F6a758e34-c556-404f-a617-655de0691a5d.png?alt=media)
* Open the downloaded HTML file in your browser, fill in the credentials and press *Start***.**

  ![](https://2802811211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdFhfexCjZ5JMhwGzzywq%2Fuploads%2Fgit-blob-6f35f9259c553df397cfe9b0f2aabab8f2c6e466%2Fd7fa3f66-7ead-4ef3-96fa-f50c3909dc22.png?alt=media)
* Select the published guideline from the list.

  ![](https://2802811211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdFhfexCjZ5JMhwGzzywq%2Fuploads%2Fgit-blob-76d4a6b44bb9cc24bd4713ef45cd3bea4179a384%2Fd4ed0620-6290-47e4-b086-7a7439fc247b.png?alt=media)
* Select *Forms*.

## Attachments

* [LogicNetsASF 101.zip](https://github.com/logicnets/community-portal/tree/release-9/docs/.gitbook/assets/k9rnkv-LogicNetsASF-101.zip)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://community-test.logicnets.com/release-9/example-gallery/example-projects-for-parts/fhir-support-example-project.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
