Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement op mapping #155

Draft
wants to merge 12 commits into
base: beta
Choose a base branch
from
Draft

feat: implement op mapping #155

wants to merge 12 commits into from

Conversation

jasminziegler
Copy link
Contributor

@jasminziegler jasminziegler commented Nov 2, 2024

@jasminziegler jasminziegler marked this pull request as draft November 2, 2024 14:27
Copy link

github-actions bot commented Nov 2, 2024

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ ACTION actionlint 5 0 0.08s
✅ BASH bash-exec 4 0 0.03s
✅ BASH shellcheck 4 0 0.03s
✅ BASH shfmt 4 0 0.02s
✅ DOCKERFILE hadolint 1 0 0.18s
✅ EDITORCONFIG editorconfig-checker 169 0 1.16s
✅ GROOVY npm-groovy-lint 2 0 12.59s
✅ JAVA checkstyle 59 0 8.59s
✅ JSON jsonlint 38 0 0.44s
✅ JSON npm-package-json-lint yes no 0.73s
✅ JSON prettier 38 0 0.82s
✅ JSON v8r 38 0 51.85s
✅ MARKDOWN markdownlint 8 0 0.75s
✅ REPOSITORY checkov yes no 19.29s
✅ REPOSITORY gitleaks yes no 0.54s
✅ REPOSITORY git_diff yes no 0.04s
✅ REPOSITORY grype yes no 14.52s
✅ REPOSITORY kics yes no 14.12s
✅ REPOSITORY secretlint yes no 1.14s
✅ REPOSITORY syft yes no 2.57s
✅ REPOSITORY trivy yes no 8.19s
✅ REPOSITORY trivy-sbom yes no 1.36s
✅ REPOSITORY trufflehog yes no 5.79s
✅ XML xmllint 19 0 0.06s
✅ YAML prettier 16 0 1.04s
✅ YAML v8r 16 0 17.03s
✅ YAML yamllint 16 0 0.78s

See detailed report in MegaLinter reports

You could have the same capabilities but better runtime performances if you use a MegaLinter flavor:

MegaLinter is graciously provided by OX Security

@chgl chgl changed the base branch from master to beta November 2, 2024 14:48

var fhirParser = FhirContext.forR4().newJsonParser().setPrettyPrint(true);

LOG.info("Number of OPS codes: {}", opMeldung);

Check notice

Code scanning / CodeQL

Use of default toString() Note test

Default toString(): Meldung inherits toString() from Object, and so is not suitable for printing.
Copy link

github-actions bot commented Dec 6, 2024

Code Coverage Report

Overall Project 68.11% -0.16% 🍏
Files changed 91.29% 🍏

File Coverage
OperationMapper.java 91.29% -8.71% 🍏

@jasminziegler
Copy link
Contributor Author

jasminziegler commented Dec 12, 2024

one validation error persists.
error: Instance count for 'Procedure.code.coding:ops' is 0, which is not within the specified cardinality of 1..1
Firstly, we thought this is because I had multiple OPS Codings in Procedure.code, but the issue persists after I changed the mapper so it creates one seperate procedure resource per OPS Code.
Secondly, we thought it's caused by the missing category, but after adding the category, the error still persists.

Any ideas?
@MarcelErpi @chgl @pcvolkmer

Copy link

Trivy image scan report

ghcr.io/bzkf/obds-to-fhir:pr-155 (debian 12.7)

No Vulnerabilities found

No Misconfigurations found

Java

14 known vulnerabilities found (CRITICAL: 0 HIGH: 8 MEDIUM: 6 LOW: 0)

Show detailed table of vulnerabilities
Package ID Severity Installed Version Fixed Version
ca.uhn.hapi.fhir:org.hl7.fhir.r4 CVE-2024-45294 HIGH 6.3.11 6.3.23
ca.uhn.hapi.fhir:org.hl7.fhir.r4 CVE-2024-51132 HIGH 6.3.11 6.4.0
ca.uhn.hapi.fhir:org.hl7.fhir.r4 CVE-2024-52007 HIGH 6.3.11 6.4.0
ca.uhn.hapi.fhir:org.hl7.fhir.utilities CVE-2024-45294 HIGH 6.3.11 6.3.23
ca.uhn.hapi.fhir:org.hl7.fhir.utilities CVE-2024-51132 HIGH 6.3.11 6.4.0
ca.uhn.hapi.fhir:org.hl7.fhir.utilities CVE-2024-52007 HIGH 6.3.11 6.4.0
commons-io:commons-io CVE-2024-47554 HIGH 2.11.0 2.14.0
org.springframework:spring-beans CVE-2024-38827 MEDIUM 6.1.11 6.1.14
org.springframework:spring-context CVE-2024-38820 MEDIUM 6.1.11 6.1.14
org.springframework:spring-context CVE-2024-38827 MEDIUM 6.1.11 6.1.14
org.springframework:spring-core CVE-2024-38827 MEDIUM 6.1.11 6.1.14
org.springframework:spring-expression CVE-2024-38827 MEDIUM 6.1.11 6.1.14
org.springframework:spring-web CVE-2024-38809 MEDIUM 6.1.11 5.3.38, 6.0.23, 6.1.12
org.springframework:spring-webmvc CVE-2024-38816 HIGH 6.1.11 6.1.13

No Misconfigurations found

@pcvolkmer
Copy link
Collaborator

pcvolkmer commented Dec 12, 2024

Any ideas? @MarcelErpi @chgl @pcvolkmer

The example (https://simplifier.net/guide/mii-ig-modul-onkologie-2024-de/miiigmodulonkologie/technischeimplementierung/fhir-profile/operation/operation-procedure.page.md?version=current) shows the version value starting with “OPS” followed by the year. However, the description only states that the value should be the (plain) year with 4 digits.

@chgl
Copy link
Contributor

chgl commented Dec 12, 2024

https://github.com/medizininformatik-initiative/kerndatensatzmodul-onkologie/actions/runs/11856173496/job/33041925911#step:3:565

Die offiziellen Ressourcen aus dem IG failen ebenfalls die Validierung. - also gut möglich dass es nicht auf unserer Seite ein problem ist. Ich Guck spätestens im Januar mal drauf.

Aber das mit der Version ist auch ein guter Punkt mMn ist es nur das Jahr anzuheben korrekt, vermutlich wird es nicht explizit validiert. Müsste man nochmal im kds Prozedur Profil nachsehen.

@pcvolkmer
Copy link
Collaborator

Das Beispiel oben von simplifier.net wird auch nicht korrekt validiert:

warning: Cannot resolve reference CarePlan/example
error: Instance count for 'Procedure.code.coding:ops' is 0, which is not within the specified cardinality of 1..1
warning: Cannot resolve reference Patient/example
warning: Cannot resolve reference Encounter/example
error: Instance failed constraint proc-mii-1 "Falls die Prozedur per OPS kodiert wird, MUSS eine SNOMED-CT kodierte Category abgebildet werden"
Result: INVALID

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants