Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Pablo Pazos Gutiérrez
    @ppazos
    @Andre-Gunner yes, the commit is in charge of all the versioning, you need to commit a compo that has a preceding_version_uid on the container version object https://specifications.openehr.org/releases/RM/latest/common.html#_overview_5 there should be an example of versioning in the Insomnia script
    @glenda-wee that request seem to depend on a previous request to get the value from, check the configuration of that variable to be able to execute the previous request first
    here is the OPT! thank you
    Pablo Pazos Gutiérrez
    @ppazos
    @glenda-wee I confirmed the issue, will fix ASAP
    glenda-wee
    @glenda-wee
    @ppazos thanks so much! :)
    Salik Sadruddin Merani
    @echosalik

    Hi
    I have a question. I tried setting up ehrserver in docker using the following:

    version: '3.0'
    services:
      web:
        image: ehrserver2
        ports:
          - "8080:8080"
        volumes:
          - ./terminology:/app/terminology
          - ./grails-app/conf/:/app/conf
        depends_on:
          - db
        environment:
          - EHRSERVER_MYSQL_DB_HOST=db
          - EHRSERVER_MYSQL_DB_PORT=3306
          - EHRSERVER_MYSQL_DB_USERNAME=ehrserver2
          - EHRSERVER_MYSQL_DB_PASSWORD=ehrserver2
          - EHRSERVER_DB_NAME=ehrserver2
          - EHRSERVER_ALLOW_WEB_USER_REGISTER=false
          - EHRSERVER_REST_SECRET=d9507256-e461-4336-a6ec-2f412796f134
      db:
        image: mysql:5.7
        volumes:
          - database:/var/lib/mysql
        environment:
          - MYSQL_DATABASE=ehrserver2
          - MYSQL_USER=ehrserver2
          - MYSQL_PASSWORD=ehrserver2
          - MYSQL_ROOT_PASSWORD=root
    volumes:
      database: {}

    The thing is ehrserver cannot connect to the DB. It always ends up at this point where hibernate cannot connect to the mysql server. am i setting up something wrong?
    I am using the wargenerated by grails war with tomcat8-jdk8

    Pablo Pazos Gutiérrez
    @ppazos
    @glenda-wee I can confirm the issue was solved and deployed to toolkit.cabolabs.com
    @echosalik I'm not an expert in docker, but: is the db initialized before the web server?
    Salik Sadruddin Merani
    @echosalik
    @ppazos yep. The issue was the config file. i had it in a different location. How can i change the default location of the config files and opt and other locations for war? currently it has to be in tomcat folder.
    BTW if you want i can send a pull request for a docker image file to build a war and start up a docker server to the repo.
    Pablo Pazos Gutiérrez
    @ppazos
    @echosalik grails allows external configuration files
    A PR is always welcome :)
    Salik Sadruddin Merani
    @echosalik
    Cool. I'll make it a little better before sending a pull request.
    glenda-wee
    @glenda-wee
    @ppazos great, thank you so much! I am rather confused as to the error message I faced in insomnia because I have uploaded my template onto the EHRServer already with template id "experimental respiratory parameters document", but I got an error on insomnia that says:
    image.png
    Pablo Pazos Gutiérrez
    @ppazos
    @glenda-wee the template_id should be exactly the same as a string, in EHRServer you should have something like xxx.en.v1 that is not the same as you are using in the composition that is only xxx
    Salik Sadruddin Merani
    @echosalik

    hey @ppazos I have create a pull request.
    ppazos/cabolabs-ehrserver#1084

    UpdatedDockerfile and added docker-compose.yml that allow user to have an easy setup experience.
    Minor changes in the docker-compose will be needed to make it work for prod environment like changing the EHRSERVER_MYSQL_DB_BEHAVIOUR to update or map a location of yml configuration.

    application.yml also now respects environment variables for production/war environment.

    Process followed by the docker-compose file:

    1. Dockerfile first builds war using grails 3.3.10
    2. Load the generated war to tomcat 8 with jdk8
    3. Create a mysql 5.7 database image and load it with user (database data are in a persistent volume)
    4. Start ehrsever
    Pablo Pazos Gutiérrez
    @ppazos
    Awesome
    Andre-Gunner
    @Andre-Gunner
    Hello.
    How can I create a null_flavour element in a composition? I've tried something in the lines of this, but I get an error: "Bad content, could not process committed compositions Cannot invoke method contains() on null object"
    image.png
    Pablo Pazos Gutiérrez
    @ppazos
    Can you send the full composition to test? @Andre-Gunner
    Andre-Gunner
    @Andre-Gunner
    Yes, I will send in a pm.
    Salik Sadruddin Merani
    @echosalik
    @ppazos i just realized. I did not update Docker.md
    Pablo Pazos Gutiérrez
    @ppazos
    @echosalik thanks, please send a PR when you can, I'll merge it :)
    Pablo Pazos Gutiérrez
    @ppazos
    @Andre-Gunner can you send the sinais_vitais_wout_proportion_fhvc.en.v4 template?
    Pablo Pazos Gutiérrez
    @ppazos
    @/all I planned to close some issues and do a release very soon, stay tuned. I'll update the documentation and remark any DB change you need to make to your local environment to update to the latest version.
    Pablo Pazos Gutiérrez
    @ppazos
    Lin Zhang
    @linforestzhang
    @ppazos Congrats :)
    Andre-Gunner
    @Andre-Gunner
    Hello Pablo.
    When using queries, is it possible to run a query against a variable passed in runtime? For instance, I want to query diagnostics that are of a certain type. That type is passed as a variable in runtime.
    Pablo Pazos Gutiérrez
    @ppazos
    hi Andre, currently the only way to do that is with an ad-hoc query, that is an experimental endpoint in the API, that allows to execute a non-stored query provided in the same request
    we have a issue in the backlog to add support to variables in the queries but no one was interested on that and I didn't have time to add support for it, since it requires quite some changes to the query processor and builder
    Andre-Gunner
    @Andre-Gunner
    Ok, thank you!
    LauretteM
    @LauretteM
    Hello! I'm very new to openEHR and trying to find out how data should look. Is this the right place to ask about errors from the OPT tool that generates XML instances? I cloned the git repository, installed Groovy 2.5 and got it running. Now I get a NullPointerException and don't know how to debug my setup. If this is the right place to ask, I'll post more details about the error.
    Pablo Pazos Gutiérrez
    @ppazos
    @LauretteM hi, which tool did you download? If it's cabolabs, yes you can ask here.
    Tomás Pérez-Zafón
    @tomaspz
    Hi. I would like to test the EHR server in my local machine using docker. I did clone the repo at https://github.com/doc-com/cabolabs-ehrserver and run the commands in the DOCKER.md file. I first build the image with the command "docker build -t cabolabsehrserver ." and then run the server with the command "docker run -p "8090:8090" cabolabsehrserver". After the message in the console "Running Grails application
    Configuring Spring Security Core ...
    ... finished configuring Spring Security Core", I get all kind of errors:
    Anybody has experienced that?. Is there anybody that can help me with this issue?
    Some of the errors are related to: ERROR context.GrailsContextLoaderListener - Error initializing the application: Error creating bean with name 'transactionManagerPostProcessor'
    ERROR context.GrailsContextLoaderListener - Error initializing Grails: Error creating bean with name 'transactionManagerPostProcessor'
    ERROR [localhost].[/] - Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener
    ERROR core.StandardContext - Error listenerStart
    ERROR core.StandardContext - Context [] startup failed due to previous errors
    Pablo Pazos Gutiérrez
    @ppazos
    @tomaspz the issue seems to be the database configuration Caused by NumberFormatException: For input string: "null" ->> 65 | forInputString in java.lang.NumberFormatException - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 580 | parseInt in java.lang.Integer | 615 | parseInt . . . . . in '' | 825 | port in com.mysql.jdbc.NonRegisteringDriver
    Please check the full log.
    Tomás Pérez-Zafón
    @tomaspz
    The full log has the same information as the messages at the CLI. How can I send you the log file to look at?. Isn't the database created in its own container?. Shouldn't the default configuration work for everybody?. I thought this was one of the advantages of using Docker.
    Pablo Pazos Gutiérrez
    @ppazos
    @tomaspz try to run directly not from docker
    those errors from Grails don't prevent the app to run
    Pablo Pazos Gutiérrez
    @ppazos
    did you follow the guide to configure the required parameters? > https://cloudehrserver.com/learn