-
Notifications
You must be signed in to change notification settings - Fork 3
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
chore: beta -> master #139
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
f805b2b
chore: added obds v3 skaffolding to beta (#132)
chgl d81dfda
chore: added dummy mapper classes and snapshot tests (#133)
chgl e70141a
ci: release only on master or workflow_dispatch (#135)
chgl 0e363e3
feat: first draft condition mapper (#136)
cfischer27 02b3230
Merge branch 'master' into beta
chgl 5353935
chore(release): 2.3.0-beta.1 [skip ci]
semantic-release-bot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,3 +64,6 @@ package-lock.json | |
tests/k8s/**/charts | ||
|
||
node_modules/ | ||
|
||
# generated code | ||
src/generated/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.gradle.jvmargs=-Dfile.enconding=UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/main/java/org/miracum/streams/ume/obdstofhir/mapper/mii/ConditionMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package org.miracum.streams.ume.obdstofhir.mapper.mii; | ||
|
||
import de.basisdatensatz.obds.v3.OBDS; | ||
import org.hl7.fhir.r4.model.*; | ||
import org.miracum.streams.ume.obdstofhir.FhirProperties; | ||
import org.miracum.streams.ume.obdstofhir.mapper.ObdsToFhirMapper; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public class ConditionMapper extends ObdsToFhirMapper { | ||
|
||
private static final Logger LOG = LoggerFactory.getLogger(ConditionMapper.class); | ||
|
||
@Autowired | ||
public ConditionMapper(FhirProperties fhirProperties) { | ||
super(fhirProperties); | ||
} | ||
|
||
public Condition map(OBDS.MengePatient.Patient.MengeMeldung.Meldung meldung, Reference patient) { | ||
var condition = new Condition(); | ||
condition.setSubject(patient); | ||
condition.getMeta().addProfile(fhirProperties.getProfiles().getMiiPrOnkoDiagnosePrimaertumor()); | ||
var tumorzuordnung = meldung.getTumorzuordnung(); | ||
if (tumorzuordnung == null) { | ||
throw new RuntimeException("tumorzuordnung ist null"); | ||
} | ||
condition.setRecordedDate( | ||
tumorzuordnung.getDiagnosedatum().getValue().toGregorianCalendar().getTime()); | ||
|
||
condition.setCode( | ||
new CodeableConcept( | ||
new Coding( | ||
fhirProperties.getSystems().getIcd10gm(), | ||
tumorzuordnung.getPrimaertumorICD().getCode(), | ||
""))); | ||
return condition; | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
src/main/java/org/miracum/streams/ume/obdstofhir/mapper/mii/PatientMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package org.miracum.streams.ume.obdstofhir.mapper.mii; | ||
|
||
import de.basisdatensatz.obds.v3.OBDS; | ||
import de.basisdatensatz.obds.v3.PatientenStammdatenMelderTyp; | ||
import java.util.List; | ||
import org.hl7.fhir.r4.model.*; | ||
import org.miracum.streams.ume.obdstofhir.FhirProperties; | ||
import org.miracum.streams.ume.obdstofhir.mapper.ObdsToFhirMapper; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public class PatientMapper extends ObdsToFhirMapper { | ||
|
||
private static final Logger LOG = LoggerFactory.getLogger(PatientMapper.class); | ||
|
||
@Autowired | ||
public PatientMapper(FhirProperties fhirProperties) { | ||
super(fhirProperties); | ||
} | ||
|
||
public Patient map( | ||
PatientenStammdatenMelderTyp stammdaten, | ||
List<OBDS.MengePatient.Patient.MengeMeldung.Meldung> meldungen) { | ||
Check notice Code scanning / CodeQL Useless parameter Note
The parameter 'meldungen' is never used.
|
||
var patient = new Patient(); | ||
patient.getMeta().addProfile(fhirProperties.getProfiles().getMiiPatientPseudonymisiert()); | ||
return patient; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check notice
Code scanning / CodeQL
Useless parameter Note