Repo for manual registration of paper sykmelding, receives paper sykmelding and in turns them into digital sykmeldings
- Kotlin
- Ktor
- Gradle
- JDK 12
- Junit
- Jackson
- JDK 14
Some packages used in this repo is uploaded to the Github Package Registry which requires authentication. It can, for example, be solved like this in Gradle:
val githubUser: String by project
val githubPassword: String by project
repositories {
maven {
credentials {
username = githubUser
password = githubPassword
}
setUrl("https://maven.pkg.github.com/navikt/syfosm-common)
}
}
githubUser
and githubPassword
can be put into a separate file ~/.gradle/gradle.properties
with the following content:
githubUser=x-access-token
githubPassword=[token]
Replace [token]
with a personal access token with scope read:packages
.
Alternatively, the variables can be configured via environment variables:
ORG_GRADLE_PROJECT_githubUser
ORG_GRADLE_PROJECT_githubPassword
or the command line:
./gradlew -PgithubUser=x-access-token -PgithubPassword=[token]
To build locally and run the integration tests you can simply run ./gradlew shadowJar
or on windows
gradlew.bat shadowJar
For triggering this app https://github.com/navikt/syfosmpapirmottak#testing-the-whole-flow-for-handling-paper-sykmelding-in-preprod And put in a invalid diagnose, then it will end up in this app
- Login User (Case managers / supervisors): Z992389
- Check that the sykmelding is placed in gosys:
- Log in at https://gosys-nais-q1.nais.preprod.local/gosys
- Search for user with fnr
- Verify that there is a sykmelding task under tasks overview and that this is the sykmelding you submitted
- Click on the "Start buttom" for that task.
- You may need to login, with the Login User, the mail adress follows this pattern: F_ZXXXXXX.E_ZXXXXXX@trygdeetaten.no, where you change F_ZXXXXXX to F_Z992389 and E_ZXXXXXX to E_Z992389 Use the same passord that you used to login in gosys. Username and password for testing can be found here(NAV-internal sites): https://confluence.adeo.no/display/KES/Generell+testing+av+sykemelding+2013+i+preprod
- TODO
- TODO
- Then check that the task has been closed and completed in gosys
- Check that the sykmelding is on ditt sykefravær
- Go to https://tjenester-q1.nav.no/sykefravaer
- Log in with the fnr for the user as the username and a password
- Then select "Uten IDPorten"
- Enter the user's fnr again and press sign-in
- Verify that a new task has appeared for the user
- Log in to the modes, https://syfomodiaperson.nais.preprod.local/sykefravaer/$fnr
- You may need to login, with the Login User, the mail adress follows this pattern: F_ZXXXXXX.E_ZXXXXXX@trygdeetaten.no, where you change F_ZXXXXXX to F_Z992389 and E_ZXXXXXX to E_Z992389 Use the same passord that you used to login in gosys. Username and password for testing can be found here(NAV-internal sites): https://confluence.adeo.no/display/KES/Generell+testing+av+sykemelding+2013+i+preprod under "Verifisering i Modia"
- See "Sykmeldt enkeltperson" verifying that the sykmelding that is there is correct
- Open a web browser and go the confluence site that has the gliffy diagram you want to import, example site: https://confluence.adeo.no/display/KES/SyfoSmMottak.
- Click on the gliffy diagram and the "Edit Digram" buttom
- Then go to File -> Export... and choose the Gliffy File Format (The gliffy diagram, should now be downloaded to you computer)
- Open a web browser and go to: https://app.diagrams.net/
- Choose the "Open Existing Diagram", then choose the file that was downloaded from step 3.
- Click on File -> Save (The diagram is now saved as a drawio format, store it in the source code)
- Click on File -> Export as SVG...(The diagram is now saved as SVG, store it in the source code)
- Commit and push the changes so its up to date
- Open a web browser and go to: https://app.diagrams.net/
- Choose the "Open Existing Diagram", then choose the file /src/flowchart/flyttdiagram.drawio
- Do the changes you want, and the save it as a drawio, back to /src/flowchart/flyttdiagram.drawio
- Click on File -> Export as SVG... save the file to here: file here: /src/svg/flytdiagram.svg
- Commit and push the changes so its up to date
- Open a web browser and go to: https://app.diagrams.net/
- Choose the "Create New diagram",
- Do the changes you want, and the save it as a drawio, back to /src/flowchart/flyttdiagram.drawio
- Click on File -> Export as SVG... save the file to here: file here: /src/svg/flytdiagram.svg
- Commit and push the changes so its up to date
Creating a docker image should be as simple as docker build -t smregistrering-backend .
docker run --rm -it -p 8080:8080 smregistrering-backend
For utfyllende dokumentasjon se Postgres i NAV
The application uses dynamically generated user / passwords for the database. To connect to the database one must generate user / password (which lasts for one hour) as follows:
Use The Vault Browser CLI that is build in https://vault.adeo.no
Preprod credentials:
read postgresql/preprod-fss/creds/smregistrering-backend-admin
Prod credentials:
read postgresql/prod-fss/creds/smregistrering-backend-readonly
To run smregistrering-backend locally you need a bunch of other services like Vault, a PostgreSQL database, an authentication service, Kafka, Zookeeper etc. The dependencies are available as a Docker compose setup at https://github.com/navikt/smregistrering-backend-docker-compose
To get started:
- Check out the smregistrering-backend-docker-compose repository and start the services as described in the readme file.
- Create a local run config for smregistrering-backend pointing to Bootstrap.tk
- Add the contents of dev-stack/dev-runtime-env as runtime environments in the run config.