Just getting started with HAPI FHIR - Can I edit pages, etc.

14 views
Skip to first unread message

Stephen Douglas Scotti

unread,
Jul 5, 2024, 9:09:51 AMJul 5
to HAPI FHIR
I am just getting started with FHIR.  I followed the instructions here:  hapi-fhir-jpaserver-starter for the docker-compose.yml setup, and I can get a server started, along with a Python container for development. Can I edit some of the server pages in the container ?

services:

  fhir:
    container_name: fhir
    image: "hapiproject/hapi:latest"
    ports:
      - "8080:8080"
    configs:
      - source: hapi
        target: /app/config/application.yaml
    depends_on:
      - db
    networks:
      - python-fhir
     
  db:
    image: postgres
    restart: always
    environment:
      POSTGRES_PASSWORD: admin
      POSTGRES_USER: admin
      POSTGRES_DB: hapi
    volumes:
      - ./hapi.postgress.data:/var/lib/postgresql/data
    networks:
      - python-fhir

  python:
    build: python
    container_name: python_sandbox
    restart: no
    env_file:
      - ./python/.env
    tty: true
    stdin_open: true
    networks:
      - python-fhir


The log looks like this:

2024-07-05 08:17:51
2024-07-05 08:17:51   .   ____          _            __ _ _
2024-07-05 08:17:51  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
2024-07-05 08:17:51 ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
2024-07-05 08:17:51  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
2024-07-05 08:17:51   '  |____| .__|_| |_|_| |_\__, | / / / /
2024-07-05 08:17:51  =========|_|==============|___/=/_/_/_/
2024-07-05 08:17:51  :: Spring Boot ::                (v3.2.0)
2024-07-05 08:17:51
2024-07-05 08:17:51 2024-07-05 06:17:51.016 [background-preinit] INFO  o.h.validator.internal.util.Version [Version.java:21] HV000001: Hibernate Validator 8.0.0.Final
2024-07-05 08:17:51 2024-07-05 06:17:51.226 [main] INFO  ca.uhn.fhir.jpa.starter.Application [StartupInfoLogger.java:50] Starting Application using Java 17.0.11 with PID 1 (/app/main.war started by nonroot in /app)
2024-07-05 08:17:51 2024-07-05 06:17:51.229 [main] INFO  ca.uhn.fhir.jpa.starter.Application [SpringApplication.java:653] No active profile set, falling back to 1 default profile: "default"
2024-07-05 08:17:53 2024-07-05 06:17:53.992 [main] INFO  o.s.d.r.c.RepositoryConfigurationDelegate [RepositoryConfigurationDelegate.java:139] Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2024-07-05 08:17:54 2024-07-05 06:17:54.451 [main] INFO  o.s.d.r.c.RepositoryConfigurationDelegate [RepositoryConfigurationDelegate.java:208] Finished Spring Data repository scanning in 445 ms. Found 52 JPA repository interfaces.
2024-07-05 08:17:57 2024-07-05 06:17:57.355 [main] WARN  o.s.c.s.PostProcessorRegistrationDelegate$BeanPostProcessorChecker [PostProcessorRegistrationDelegate.java:429] Bean 'ca.uhn.fhir.jpa.config.BeanPostProcessorConfig' of type [ca.uhn.fhir.jpa.config.BeanPostProcessorConfig$$SpringCGLIB$$0] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). The currently created BeanPostProcessor [persistenceExceptionTranslationPostProcessor] is declared through a non-static factory method on that class; consider declaring it as static instead.
2024-07-05 08:17:58 2024-07-05 06:17:58.096 [main] INFO  o.s.b.w.e.tomcat.TomcatWebServer [TomcatWebServer.java:108] Tomcat initialized with port 8080 (http)
2024-07-05 08:17:58 2024-07-05 06:17:58.110 [main] INFO  o.a.coyote.http11.Http11NioProtocol [DirectJDKLog.java:173] Initializing ProtocolHandler ["http-nio-8080"]
2024-07-05 08:17:58 2024-07-05 06:17:58.114 [main] INFO  o.a.catalina.core.StandardService [DirectJDKLog.java:173] Starting service [Tomcat]
2024-07-05 08:17:58 2024-07-05 06:17:58.114 [main] INFO  o.a.catalina.core.StandardEngine [DirectJDKLog.java:173] Starting Servlet engine: [Apache Tomcat/10.1.16]
2024-07-05 08:17:58 2024-07-05 06:17:58.352 [main] INFO  o.a.c.c.C.[Tomcat].[localhost].[/] [DirectJDKLog.java:173] Initializing Spring embedded WebApplicationContext
2024-07-05 08:17:58 2024-07-05 06:17:58.353 [main] INFO  o.s.b.w.s.c.ServletWebServerApplicationContext [ServletWebServerApplicationContext.java:296] Root WebApplicationContext: initialization completed in 6978 ms
2024-07-05 08:17:58 2024-07-05 06:17:58.509 [main] INFO  ca.uhn.fhir.util.VersionUtil [VersionUtil.java:84] HAPI FHIR version 7.2.0 - Rev 018a38bd45
2024-07-05 08:17:58 2024-07-05 06:17:58.515 [main] INFO  ca.uhn.fhir.context.FhirContext [FhirContext.java:226] Creating new FHIR context for FHIR version [R4]
2024-07-05 08:17:58 2024-07-05 06:17:58.550 [main] INFO  c.u.f.j.s.c.FhirServerConfigCommon [FhirServerConfigCommon.java:39] Server configured to allow contains searches
2024-07-05 08:17:58 2024-07-05 06:17:58.551 [main] INFO  c.u.f.j.s.c.FhirServerConfigCommon [FhirServerConfigCommon.java:41] Server configured to deny multiple deletes
2024-07-05 08:17:58 2024-07-05 06:17:58.552 [main] INFO  c.u.f.j.s.c.FhirServerConfigCommon [FhirServerConfigCommon.java:43] Server configured to deny external references
2024-07-05 08:17:58 2024-07-05 06:17:58.552 [main] INFO  c.u.f.j.s.c.FhirServerConfigCommon [FhirServerConfigCommon.java:45] Server configured to enable DAO scheduling
2024-07-05 08:17:58 2024-07-05 06:17:58.553 [main] INFO  c.u.f.j.s.c.FhirServerConfigCommon [FhirServerConfigCommon.java:47] Server configured to disable delete expunges
2024-07-05 08:17:58 2024-07-05 06:17:58.554 [main] INFO  c.u.f.j.s.c.FhirServerConfigCommon [FhirServerConfigCommon.java:49] Server configured to enable expunges
2024-07-05 08:17:58 2024-07-05 06:17:58.556 [main] INFO  c.u.f.j.s.c.FhirServerConfigCommon [FhirServerConfigCommon.java:51] Server configured to allow overriding default search params
2024-07-05 08:17:58 2024-07-05 06:17:58.558 [main] INFO  c.u.f.j.s.c.FhirServerConfigCommon [FhirServerConfigCommon.java:54] Server configured to disable auto-creating placeholder references
2024-07-05 08:17:58 2024-07-05 06:17:58.559 [main] INFO  c.u.f.j.s.c.FhirServerConfigCommon [FhirServerConfigCommon.java:57] Server configured to auto-version references at paths []
2024-07-05 08:17:58 2024-07-05 06:17:58.608 [main] INFO  c.u.f.j.s.c.FhirServerConfigCommon [FhirServerConfigCommon.java:122] Server configured to have a maximum fetch size of 'unlimited'
2024-07-05 08:17:58 2024-07-05 06:17:58.609 [main] INFO  c.u.f.j.s.c.FhirServerConfigCommon [FhirServerConfigCommon.java:127] Server configured to cache search results for 60000 milliseconds
2024-07-05 08:17:58 2024-07-05 06:17:58.610 [main] INFO  c.u.f.j.s.c.FhirServerConfigCommon [FhirServerConfigCommon.java:178] Server configured to use 'ALPHANUMERIC' Client ID Strategy
2024-07-05 08:17:58 2024-07-05 06:17:58.759 [main] INFO  o.h.jpa.internal.util.LogHelper [LogHelper.java:31] HHH000204: Processing PersistenceUnitInfo [name: HAPI_PU]
2024-07-05 08:17:58 2024-07-05 06:17:58.871 [main] INFO  org.hibernate.Version [Version.java:44] HHH000412: Hibernate ORM core version 6.4.1.Final
2024-07-05 08:18:04 2024-07-05 06:18:04.596 [main] INFO  c.u.f.j.l.FilteringSqlLoggerImplContributor [FilteringSqlLoggerImplContributor.java:33] Adding service: SqlStatementFilteringLogger
2024-07-05 08:18:04 2024-07-05 06:18:04.676 [main] INFO  o.h.c.i.RegionFactoryInitiator [RegionFactoryInitiator.java:50] HHH000026: Second-level cache disabled
2024-07-05 08:18:04 2024-07-05 06:18:04.852 [main] INFO  o.h.e.b.internal.EnversServiceImpl [EnversServiceImpl.java:76] Envers integration enabled? : true
2024-07-05 08:18:05 2024-07-05 06:18:05.371 [main] INFO  o.s.o.j.p.SpringPersistenceUnitInfo [SpringPersistenceUnitInfo.java:87] No LoadTimeWeaver setup: ignoring JPA class transformer
2024-07-05 08:18:05 2024-07-05 06:18:05.409 [main] INFO  com.zaxxer.hikari.HikariDataSource [HikariDataSource.java:110] HikariPool-1 - Starting...
2024-07-05 08:18:06 2024-07-05 06:18:06.039 [main] INFO  com.zaxxer.hikari.pool.HikariPool [HikariPool.java:565] HikariPool-1 - Added connection org.postgresql.jdbc.PgConnection@4cfa83f9
2024-07-05 08:18:06 2024-07-05 06:18:06.050 [main] INFO  com.zaxxer.hikari.HikariDataSource [HikariDataSource.java:123] HikariPool-1 - Start completed.
2024-07-05 08:18:08 2024-07-05 06:18:08.409 [main] INFO  o.h.s.m.o.b.i.HibernateSearchPreIntegrationService [HibernateSearchPreIntegrationService.java:101] HSEARCH000034: Hibernate Search version 7.0.0.Final
2024-07-05 08:18:08 2024-07-05 06:18:08.603 [main] INFO  o.h.e.c.i.m.AuditMetadataGenerator [AuditMetadataGenerator.java:322] Adding properties for entity: ca.uhn.fhir.jpa.entity.MdmLink
2024-07-05 08:18:13 2024-07-05 06:18:13.630 [main] INFO  o.h.e.t.j.p.i.JtaPlatformInitiator [JtaPlatformInitiator.java:58] HHH000489: No JTA platform available (set 'hibernate.transaction.jta.platform' to enable JTA platform integration)
2024-07-05 08:18:14 2024-07-05 06:18:14.929 [main] INFO  c.u.f.j.c.HapiFhirLocalContainerEntityManagerFactoryBean [AbstractEntityManagerFactoryBean.java:437] Initialized JPA EntityManagerFactory for persistence unit 'HAPI_PU'
2024-07-05 08:18:15 2024-07-05 06:18:15.923 [main] INFO  c.u.f.c.s.DefaultProfileValidationSupport [DefaultProfileValidationSupportBundleStrategy.java:368] Loading structure definitions from classpath: /org/hl7/fhir/r4/model/profile/profiles-resources.xml
2024-07-05 08:18:15 2024-07-05 06:18:15.941 [main] INFO  ca.uhn.fhir.util.XmlUtil [DependencyLogImpl.java:76] FHIR XML procesing will use StAX implementation 'Woodstox' version '6.4.0'
2024-07-05 08:18:16 2024-07-05 06:18:16.949 [main] INFO  c.u.f.c.s.DefaultProfileValidationSupport [DefaultProfileValidationSupportBundleStrategy.java:368] Loading structure definitions from classpath: /org/hl7/fhir/r4/model/profile/profiles-types.xml
2024-07-05 08:18:17 2024-07-05 06:18:17.014 [main] INFO  c.u.f.c.s.DefaultProfileValidationSupport [DefaultProfileValidationSupportBundleStrategy.java:368] Loading structure definitions from classpath: /org/hl7/fhir/r4/model/profile/profiles-others.xml
2024-07-05 08:18:17 2024-07-05 06:18:17.237 [main] INFO  c.u.f.c.s.DefaultProfileValidationSupport [DefaultProfileValidationSupportBundleStrategy.java:368] Loading structure definitions from classpath: /org/hl7/fhir/r4/model/extension/extension-definitions.xml
2024-07-05 08:18:18 2024-07-05 06:18:18.543 [main] INFO  o.s.d.j.r.query.QueryEnhancerFactory [QueryEnhancerFactory.java:49] Hibernate is in classpath; If applicable, HQL parser will be used.
2024-07-05 08:18:22 2024-07-05 06:18:22.743 [main] INFO  c.u.f.j.s.BaseSchedulerServiceImpl [BaseSchedulerServiceImpl.java:132] Creating Local Scheduler
2024-07-05 08:18:22 2024-07-05 06:18:22.803 [main] INFO  org.quartz.impl.StdSchedulerFactory [StdSchedulerFactory.java:1220] Using default implementation for ThreadExecutor
2024-07-05 08:18:22 2024-07-05 06:18:22.829 [main] INFO  o.quartz.core.SchedulerSignalerImpl [SchedulerSignalerImpl.java:61] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
2024-07-05 08:18:22 2024-07-05 06:18:22.829 [main] INFO  org.quartz.core.QuartzScheduler [QuartzScheduler.java:229] Quartz Scheduler v.2.3.2 created.
2024-07-05 08:18:22 2024-07-05 06:18:22.831 [main] INFO  org.quartz.simpl.RAMJobStore [RAMJobStore.java:155] RAMJobStore initialized.
2024-07-05 08:18:22 2024-07-05 06:18:22.832 [main] INFO  org.quartz.core.QuartzScheduler [QuartzScheduler.java:294] Scheduler meta-data: Quartz Scheduler (v2.3.2) 'hapi-fhir-jpa-scheduler' with instanceId 'NON_CLUSTERED'
2024-07-05 08:18:22   Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
2024-07-05 08:18:22   NOT STARTED.
2024-07-05 08:18:22   Currently in standby mode.
2024-07-05 08:18:22   Number of jobs executed: 0
2024-07-05 08:18:22   Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 4 threads.
2024-07-05 08:18:22   Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
2024-07-05 08:18:22
2024-07-05 08:18:22 2024-07-05 06:18:22.833 [main] INFO  org.quartz.impl.StdSchedulerFactory [StdSchedulerFactory.java:1374] Quartz scheduler 'hapi-fhir-jpa-scheduler' initialized from an externally provided properties instance.
2024-07-05 08:18:22 2024-07-05 06:18:22.833 [main] INFO  org.quartz.impl.StdSchedulerFactory [StdSchedulerFactory.java:1378] Quartz scheduler version: 2.3.2
2024-07-05 08:18:22 2024-07-05 06:18:22.833 [main] INFO  org.quartz.core.QuartzScheduler [QuartzScheduler.java:2293] JobFactory set to: ca.uhn.fhir.jpa.sched.AutowiringSpringBeanJobFactory@76b9605
2024-07-05 08:18:22 2024-07-05 06:18:22.833 [main] INFO  org.quartz.core.QuartzScheduler [QuartzScheduler.java:585] Scheduler hapi-fhir-jpa-scheduler_$_NON_CLUSTERED paused.
2024-07-05 08:18:22 2024-07-05 06:18:22.834 [main] INFO  c.u.f.j.s.BaseSchedulerServiceImpl [BaseSchedulerServiceImpl.java:129] Creating Clustered Scheduler
2024-07-05 08:18:22 2024-07-05 06:18:22.835 [main] INFO  org.quartz.impl.StdSchedulerFactory [StdSchedulerFactory.java:1220] Using default implementation for ThreadExecutor
2024-07-05 08:18:22 2024-07-05 06:18:22.838 [main] INFO  o.quartz.core.SchedulerSignalerImpl [SchedulerSignalerImpl.java:61] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
2024-07-05 08:18:22 2024-07-05 06:18:22.839 [main] INFO  org.quartz.core.QuartzScheduler [QuartzScheduler.java:229] Quartz Scheduler v.2.3.2 created.
2024-07-05 08:18:22 2024-07-05 06:18:22.839 [main] INFO  org.quartz.simpl.RAMJobStore [RAMJobStore.java:155] RAMJobStore initialized.
2024-07-05 08:18:22 2024-07-05 06:18:22.840 [main] INFO  org.quartz.core.QuartzScheduler [QuartzScheduler.java:294] Scheduler meta-data: Quartz Scheduler (v2.3.2) 'hapi-fhir-jpa-scheduler' with instanceId 'NON_CLUSTERED'
2024-07-05 08:18:22   Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
2024-07-05 08:18:22   NOT STARTED.
2024-07-05 08:18:22   Currently in standby mode.
2024-07-05 08:18:22   Number of jobs executed: 0
2024-07-05 08:18:22   Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 4 threads.
2024-07-05 08:18:22   Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
2024-07-05 08:18:22
2024-07-05 08:18:22 2024-07-05 06:18:22.840 [main] INFO  org.quartz.impl.StdSchedulerFactory [StdSchedulerFactory.java:1374] Quartz scheduler 'hapi-fhir-jpa-scheduler' initialized from an externally provided properties instance.
2024-07-05 08:18:22 2024-07-05 06:18:22.840 [main] INFO  org.quartz.impl.StdSchedulerFactory [StdSchedulerFactory.java:1378] Quartz scheduler version: 2.3.2
2024-07-05 08:18:22 2024-07-05 06:18:22.841 [main] INFO  org.quartz.core.QuartzScheduler [QuartzScheduler.java:2293] JobFactory set to: ca.uhn.fhir.jpa.sched.AutowiringSpringBeanJobFactory@76b9605
2024-07-05 08:18:22 2024-07-05 06:18:22.841 [main] INFO  org.quartz.core.QuartzScheduler [QuartzScheduler.java:585] Scheduler hapi-fhir-jpa-scheduler_$_NON_CLUSTERED paused.
2024-07-05 08:18:23 2024-07-05 06:18:23.420 [main] INFO  ca.uhn.fhir.context.FhirContext [FhirContext.java:226] Creating new FHIR context for FHIR version [R4]
2024-07-05 08:18:24 2024-07-05 06:18:24.020 [main] INFO  c.u.f.j.s.common.StarterJpaConfig [StarterJpaConfig.java:222] CORS is enabled on this server
2024-07-05 08:18:24 2024-07-05 06:18:24.022 [main] INFO  c.u.f.j.s.common.StarterJpaConfig [StarterJpaConfig.java:235] CORS allows the following origins: *
2024-07-05 08:18:32 2024-07-05 06:18:32.012 [main] INFO  ca.uhn.fhir.context.FhirContext [FhirContext.java:226] Creating new FHIR context for FHIR version [R4]
2024-07-05 08:18:32 2024-07-05 06:18:32.501 [main] WARN  o.s.b.a.o.j.JpaBaseConfiguration$JpaWebConfiguration [JpaBaseConfiguration.java:232] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
2024-07-05 08:18:33 2024-07-05 06:18:33.462 [main] INFO  c.u.f.j.s.s.i.SubscriptionSubmitInterceptorLoader [SubscriptionSubmitInterceptorLoader.java:62] Subscriptions are disabled on this server.  Subscriptions will not be activated and incoming resources will not be matched against subscriptions.
2024-07-05 08:18:33 2024-07-05 06:18:33.813 [main] INFO  c.u.f.j.s.r.JpaSearchParamCache [JpaSearchParamCache.java:182] Have 0 unique search params
2024-07-05 08:18:18 ANTLR Tool version 4.13.0 used for code generation does not match the current runtime version 4.10.1
2024-07-05 08:18:18 ANTLR Runtime version 4.13.0 used for parser compilation does not match the current runtime version 4.10.1
2024-07-05 08:18:19 ANTLR Tool version 4.13.0 used for code generation does not match the current runtime version 4.10.1
2024-07-05 08:18:19 ANTLR Runtime version 4.13.0 used for parser compilation does not match the current runtime version 4.10.1
2024-07-05 08:18:34 2024-07-05 06:18:34.449 [main] INFO  org.quartz.impl.StdSchedulerFactory [StdSchedulerFactory.java:1220] Using default implementation for ThreadExecutor
2024-07-05 08:18:34 2024-07-05 06:18:34.467 [main] INFO  o.quartz.core.SchedulerSignalerImpl [SchedulerSignalerImpl.java:61] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
2024-07-05 08:18:34 2024-07-05 06:18:34.468 [main] INFO  org.quartz.core.QuartzScheduler [QuartzScheduler.java:229] Quartz Scheduler v.2.3.2 created.
2024-07-05 08:18:34 2024-07-05 06:18:34.468 [main] INFO  org.quartz.simpl.RAMJobStore [RAMJobStore.java:155] RAMJobStore initialized.
2024-07-05 08:18:34 2024-07-05 06:18:34.468 [main] INFO  org.quartz.core.QuartzScheduler [QuartzScheduler.java:294] Scheduler meta-data: Quartz Scheduler (v2.3.2) 'quartzScheduler' with instanceId 'NON_CLUSTERED'
2024-07-05 08:18:34   Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
2024-07-05 08:18:34   NOT STARTED.
2024-07-05 08:18:34   Currently in standby mode.
2024-07-05 08:18:34   Number of jobs executed: 0
2024-07-05 08:18:34   Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
2024-07-05 08:18:34   Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
2024-07-05 08:18:34
2024-07-05 08:18:34 2024-07-05 06:18:34.468 [main] INFO  org.quartz.impl.StdSchedulerFactory [StdSchedulerFactory.java:1374] Quartz scheduler 'quartzScheduler' initialized from an externally provided properties instance.


Is the Docker Build fine for some simple testing, or should I learn how to use the resources here:  https://github.com/hapifhir/hapi-fhir


Stephen D. Scotti
Reply all
Reply to author
Forward
0 new messages