Yellow Button - Firely Server for your Simplifier project¶
Yellow Button is an easy way to run an instance of Firely Server that is aware of all the profiles, search parameters and other (conformance) resources that are part of a Simplifier project. That can be a project of your own or for instance a project with national profiles.
Yellow Button provides you with a PowerShell script to start Firely Server in a Docker container. This means that you will need:
- Windows OS that can run Docker for Windows
- Docker for Windows
If you still need to install Docker for Windows, please read Installing Docker For Windows for specific installation details.
Getting the server¶
Go to Simplifier and open the project page of the project that has the profiles that are relevant to you. For our example we took the US-Core project. Note that it has to be an STU3 project.
On the project page, click the Download button, and in the dropdown menu that appears, click ‘US-Core FHIR Server’ (the name here will reflect the name of the project). It is shown in the image below with the menu item marked in yellow. The light blue marking shows you where to check whether this is a FHIR STU3 project.
When you click the menu item, Simplifier takes you to a page with instructions. It also includes a link to this documentation page, since we can host more detailed instructions here than on the Simplifier site.
Click the yellow / orange Download button and you will download a zip file named after the server you are installing. Here it is
us-core-VonkDockerServer.zip. Save it and unpack it in a folder on your harddrive. I unpacked it to
Running the server¶
Open Windows Powershell (or Windows Powershell ISE if you prefer). Windows Powershell by default does not allow you to run scripts that you downloaded from the internet. To make sure you allow the server script to run, first tell Powershell that that is all right:
> Set-ExecutionPolicy Unrestricted -Scope CurrentUser
You can be more restrictive by setting it to
RemoteSigned. See Documentation on ExecutionPolicy for more information.
Now go to the folder where you unpacked the zip, and run the script ./start-vonk-server.ps1:
> cd c:\data\yellowbutton\us-core-VonkDockerServer > .\start-vonk-server.ps1
Powershell will probably still ask for confirmation before running the script. Type ‘R’ to allow it to run:
The script will pull images from the Docker hub as necessary, and then start the Firely Server. Firely Server will load all the conformance resources from the core specification, and from your project into its Administration database. You can read Conformance Resources if you want to know more about this. Since this may take some time, you will see a progress bar. Firely Server is allowed to finish this task in at most 6 minutes.
As soon as Firely Server is ready, the script will finish and it will open your browser on the endpoint of Firely Server: http://127.0.0.1:8080/, showing the landing page. For further use of the Firely Server RESTful API you will want to use an API testing tool like Postman.
If the script does not finish in due time, please check the Common errors and mistakes below.
Common errors and mistakes¶
- Docker is not running
error during connect: Get http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.39/containers/json: open //./pipe/docker_engine: The system cannot find the file specified. In the default daemon configuration on Windows, the docker client must be run elevated to connect. This error may also indicate that the docker daemon is not running. Docker is not running, now exiting the script. See https://docs.docker.com/docker-for-windows/install/ for more information.
Solution: The problem is exactly as stated – your Docker for Windows is probably not running. Start it from the Windows Start menu and try again.
- Mount failed
ERROR: for vonk-web Cannot start service vonk-web: error while creating mount source path '/host_mnt/c/data/yellowbutton/us-core-VonkDockerServer/license': mkdir /host_mnt/c: file exists
Solution: This may happen at subsequent starts of the Firely Server container. It appears to be an error in Docker for Windows. But it may be fixed by resetting the credentials for Drive Sharing in Docker for Windows (even if you did not change your password). See Shared Drives for more information.
- Network failed
ERROR: for vonk-web Cannot start service vonk-web: driver failed programming external connectivity on endpoint ...
Solution: This is an issue reported as Issue 1967 on Docker for Windows. It can be solved by restarting Docker on Windows.
- Is Docker for Windows configured to run Linux containers and not Windows containers? Check the Docker switching Container type documentation on this if needed.
- Did you enable Shared Drives on Docker for Windows? Yellow Button needs this to provide the license file to the Docker container. See Shared Drives for more information.
- Did you change your Windows password after sharing your drive in Docker for Windows? If so, you need to reset your credentials in Docker for Windows. See Shared Drives for more information.
- Does Docker for Windows have enough resources to let Firely Server run its initialization within the designated time? You can give it more resources in the Docker Advanced Settings.
Still no luck? Please contact us on firstname.lastname@example.org. Please include:
- the output of the Powershell script ./start-vonk-server.ps1
- version info of Windows
- version info of Docker for Windows
- any other information you think is relevant.
Using the server¶
When your Firely Server is running, you can check whether your profiles are indeed present in the server by requesting them from the Administration endpoint. In this example we search for the US-Core profiles:
Please note that any Conformance resources that influence the behaviour of Firely Server – such as the Validation – must be managed on the Administration API and not the regular FHIR endpoint. See Firely Server Administration API for more background.
If the project you created the server off of contains any example resources, they will be available at the normal FHIR endpoint:
GET http://127.0.0.1:8080/<more specific search if you want>
Your project in progress¶
You created the Firely Server off of a Simplifier project. That project may evolve. Either because it is your own and you improve your profiles, or because the maintainer of the project applies changes. Firely Server is connected to the Simplifier project. This means that you can update the conformance resource in Firely Server from the contents of the project by:
or restarting Firely Server:
> ./stop-vonk-server.ps1 > ./start-vonk-server.ps1