FHIR Chat · FHIR Data Model · implementers

Stream: implementers

Topic: FHIR Data Model


view this post on Zulip Marian Berda (May 06 2019 at 15:32):

Hi All,
I am new with HL7-FHIR data transmission standards, but I have been reading the documents and posts over the last few weeks on the FHIR website. Our project team is using FHIR standards to ingest healthcare data into our system. My interest is to understand at a high-level the data architecture that FHIR supports so that we may have an accurate depiction for storage. From Kevin Mayfield post, he provided a link to a FHIR (STU3) model at https://www.openhealthhub.org/t/exploring-fhir-model-database/1987 with a relational database model using HAPI RESTful server. Working with a system engineer, we run the server in RedHat 7 Operating System and when we try to compose the yml file we were getting those errors, as indicated below. We need the yml file, which executes.
The file continues to throw errors; ERROR: yaml.parser.ParserError: while parsing a block mapping
in "./docker-compose.yml", line 10, column 4
expected <block end>, but found '<block mapping start>'
in "./docker-compose.yml", line 16, column 5
Your help is much appreciated.
Regards,
Marian

view this post on Zulip Lloyd McKenzie (May 06 2019 at 18:37):

@Kevin Mayfield ? Also, you might raise the question on the #storage for FHIR stream

view this post on Zulip Kevin Mayfield (May 06 2019 at 18:52):

Did you use the docker-compose.min.yml?

I can't see anything obviously wrong with the yml file. It sounds like it's missing some spaces in the file.

view this post on Zulip Kevin Mayfield (May 06 2019 at 18:58):

p.s. that is an interpretation of the FHIR model in RDBMS form. Not all of the resources were implemented and some optimisations were implemented (e.g. some one to many CodeableConcepts were turned to 1..1 as we were only expecting to support SNOMED) but it does give the gist of the model.

view this post on Zulip Kevin Mayfield (May 06 2019 at 18:59):

p.s. the model isn't 100% accurate, some optimisations were done and some resources haven't been implemented (it was expected to evolve alongside the UK model)

view this post on Zulip Marian Berda (May 06 2019 at 19:34):

Thanks so much, Kevin.. We double checked again and confirmed nothing is missing. We also used another yml file, compose it and it works. Is it possible to send along your yml file directly. http://10.97.21.204:8000/wp-admin/install.php
version: '3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: somewordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress

wordpress:
depends_on:
- db
image: wordpress:latest
ports:
- "8000:80"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
volumes:
db_data:
We are so close. Since I have limited knowledge of the structure, your data model, although not 100%, will give us a jump start to understand the structure. Much appreciate your help. Marian

view this post on Zulip Marian Berda (May 07 2019 at 14:50):

Getting closer... This is the error now received with yml file now. Any thoughts on how to resolve?

WARNING: The IMAGE_TAG variable is not set. Defaulting to a blank string.
WARNING: The MYSQL_DB_USER variable is not set. Defaulting to a blank string.
WARNING: The MYSQL_DB_PASSWORD variable is not set. Defaulting to a blank string.
WARNING: The FHIR_SERVER_BASE_HOST variable is not set. Defaulting to a blank string.
ccrisql is up-to-date
Creating ccriserver ... error

view this post on Zulip Marian Berda (May 07 2019 at 15:19):

BTW: We are running docker on Linux - Redhat 7

view this post on Zulip Marian Berda (May 09 2019 at 17:27):

@Kevin Mayfield @nicola (RIO/SS) @Lloyd McKenzie We are so close to view the FHIR (STU3) relational model. Using Linux Redhat 7 server with docker installed. If can have a session or guidiance to resolve this issue, much appreciate. So close...
This is what i did just now...
version: '3'
services:
   db:
     image: mysql:5.7
     volumes:
       - db_data:/var/lib/mysql
     restart: always
     environment:
       MYSQL_ROOT_PASSWORD: somewordpress
       MYSQL_DATABASE: wordpress
       MYSQL_USER: wordpress
       MYSQL_PASSWORD: wordpress

   wordpress:
     depends_on:
       - db
     image: wordpress:latest
     ports:
       - "8000:80"
     restart: always
     environment:
       WORDPRESS_DB_HOST: db:3306
       WORDPRESS_DB_USER: wordpress
       WORDPRESS_DB_PASSWORD: wordpress
volumes:
    db_data:

view this post on Zulip Lloyd McKenzie (May 09 2019 at 18:06):

Ok - and what problems are you running into?

view this post on Zulip Kevin Mayfield (May 09 2019 at 18:56):

The link to the docker-compose is this https://github.com/nhsconnect/careconnect-reference-implementation/blob/master/docker-compose.min.yml

if you're not setting the environment variables you will need to change the variables ${MYSQL_DB_USER} with real values.
This is a link to default values we used https://github.com/nhsconnect/careconnect-reference-implementation/blob/master/.env

so the entry in the docker-compose like this:

environment:
- POSTGRES_DB=careconnect
- POSTGRES_USER=${MYSQL_DB_USER}
- POSTGRES_PASSWORD=${MYSQL_DB_PASSWORD}

would become

environment:
- POSTGRES_DB=careconnect
- POSTGRES_USER=fhirjpa
- POSTGRES_PASSWORD=fhirjpa

view this post on Zulip Marian Berda (May 09 2019 at 20:08):

Thank you for your response and guidance through the errors. It still returns an error that may stem from IP address error.
Below is the error.

WARNING: The IMAGE_TAG variable is not set. Defaulting to a blank string.
WARNING: The MYSQL_DB_USER variable is not set. Defaulting to a blank string.
WARNING: The MYSQL_DB_PASSWORD variable is not set. Defaulting to a blank string.
WARNING: The FHIR_SERVER_BASE_HOST variable is not set. Defaulting to a blank string.
ccrisql is up-to-date
Creating ccriserver ... error

ERROR: for ccriserver Cannot create container for service ccriserver: bad format for add-host: ":127.0.0.1"

ERROR: for ccriserver Cannot create container for service ccriserver: bad format for add-host: ":127.0.0.1"
ERROR: Encountered errors while bringing up the project.

view this post on Zulip Marian Berda (May 13 2019 at 17:48):

@Kevin Mayfield| @niciola @Lloyd McKenzie We have experienced some many issues just to view the FHIR (STU3) relational model. Although I realize that it is not with your file per se, but the attempt to use docker to access the file. Note: https://forums.docker.com/t/docker-for-windows-image-operating-system-linux-cannot-be-used-on-this-platform/28936, the latest... Is there another way to get to view the diagram?

view this post on Zulip Lloyd McKenzie (May 13 2019 at 18:33):

Someone successfully ran a diagram 1.5 to 2 years ago - I think on STU 2. I did a brief search here but wasn't able to find the post. In any event, it was pretty much unreadable because so many resources point to each other. Every Reference(Any) and every place you can have an extension will point to all other resources. Even if you eliminate those, pretty much everything points to Patient, Encounter, Practitioner, PractitionerRole, Device and Organization and lots that point to many other things. The result is that a diagram showing all of FHIR doesn't really buy you much beyond confirming "yup, that's a lot of relationships...". FHIR is not designed to be a persistence model so diagramability of the whole structure is not much of a consideration. It can certainly be used for persistence - see #storage for FHIR, but useful diagrams are going to be hard to come by.

view this post on Zulip Grahame Grieve (May 13 2019 at 19:24):

I did used to maintain a diagram back in the early days - 0.01 kid of early - but it rapidly turned into spaghetti. The only useful way is a visual browser. There's one in clinfhir

view this post on Zulip Vadim Peretokin (May 14 2019 at 09:15):

Simplifier shows you diagrams on demand (if you're a beta tester) - works with any resources, so core / profiles / extensions etc

Selection_002.png

view this post on Zulip Vadim Peretokin (May 14 2019 at 09:15):

Diagrams for core resources are kind of huge


Last updated: Apr 12 2022 at 19:14 UTC