Skip to content

navikt/syk-inn-api

Repository files navigation

syk-inn-api

Technologies used

  • Kotlin
  • Spring boot
  • Gradle

Prerequisites

Java

Make sure you have the Java JDK 21 installed You can check which version you have installed using this command:

java -version

Docker

Make sure you have the Docker installed You can check which version you have installed using this command:

docker --version

Docker compose

Make sure you have the Docker-compose installed You can check which version you have installed using this command:

docker-compose --version

Docker compose will deploy Kafka. To query the local Kafka instance you can use the following command to check for content in the topic::

 kcat -b localhost:9092 -t tsm.sykmeldinger-input -C -o beginning

Building the application

To build locally and run the integration tests you can simply run

./gradlew clean build

or on windows gradlew.bat clean build


new stuff under here this is the stuff you should read

Run this application locally

external services are mocked so we are not calling pdl, btsys etc-

docker compose up -d
or 
podman-compose up -d 

Initiate the database table

currently flyway is not enabled so before you send a create sykmelding you HAVE to create the sykmelding table. Start the db query console in your IDe and run this:

CREATE TABLE sykmelding (
                            id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
                            sykmelding_id TEXT NOT NULL,
                            pasient_fnr TEXT NOT NULL,
                            sykmelder_hpr TEXT NOT NULL,
                            sykmelding JSONB NOT NULL,
                            legekontor_orgnr TEXT NOT NULL,
                            validert_ok BOOLEAN NOT NULL DEFAULT FALSE
);

Contact

This project is maintained by navikt/tsm

Questions and/or feature requests? Please create an issue

If you work in @navikt you can reach us at the Slack channel #team-sykmelding

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6

Languages