This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #237 from ehrbase/refactoring_#204
Refactoring #204
- Loading branch information
Showing
16 changed files
with
1,111 additions
and
865 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
src/main/java/org/ehrbase/fhirbridge/ehr/converter/CompositionConverterResolver.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
248 changes: 0 additions & 248 deletions
248
src/main/java/org/ehrbase/fhirbridge/ehr/converter/SofaScoreCompositionConverter.java
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
src/main/java/org/ehrbase/fhirbridge/ehr/converter/TerminologyIdCode.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,17 @@ | ||
package org.ehrbase.fhirbridge.ehr.converter; | ||
|
||
public enum TerminologyIdCode { | ||
|
||
LOCAL("local"); | ||
|
||
private final String terminologyId; | ||
|
||
TerminologyIdCode(String terminologyId){ | ||
this.terminologyId = terminologyId; | ||
} | ||
|
||
public String getTerminologyId(){ | ||
return terminologyId; | ||
} | ||
|
||
} |
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
18 changes: 18 additions & 0 deletions
18
src/main/java/org/ehrbase/fhirbridge/ehr/converter/bloodgas/BloogGasProfileUrl.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,18 @@ | ||
package org.ehrbase.fhirbridge.ehr.converter.bloodgas; | ||
|
||
public enum BloogGasProfileUrl { | ||
PH("https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/pH"), | ||
CARBONDIOXIDE_PARTIAL_PRESSURE("https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/carbon-dioxide-partial-pressure"), | ||
OXYGENPARTIAL_PRESSURE("https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/oxygen-partial-pressure"), | ||
OXYGEN_SATURATION("https://www.netzwerk-universitaetsmedizin.de/fhir/StructureDefinition/oxygen-saturation"); | ||
|
||
private final String url; | ||
|
||
BloogGasProfileUrl(String url) { | ||
this.url = url; | ||
} | ||
|
||
public String getUrl() { | ||
return url; | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...ava/org/ehrbase/fhirbridge/ehr/converter/clinicalFrailty/ClinicalFrailtyBerurteilung.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,39 @@ | ||
package org.ehrbase.fhirbridge.ehr.converter.clinicalFrailty; | ||
|
||
import com.nedap.archie.rm.datatypes.CodePhrase; | ||
import com.nedap.archie.rm.datavalues.DvCodedText; | ||
import com.nedap.archie.rm.datavalues.quantity.DvOrdinal; | ||
import com.nedap.archie.rm.support.identification.TerminologyId; | ||
import org.ehrbase.fhirbridge.ehr.converter.TerminologyIdCode; | ||
|
||
public enum ClinicalFrailtyBerurteilung { | ||
|
||
SEHR_FIT(new DvOrdinal(1L, | ||
new DvCodedText("1", new CodePhrase(new TerminologyId(TerminologyIdCode.LOCAL.getTerminologyId()), "at0005")))), | ||
DURCHSCHNITTLICH_AKTIV(new DvOrdinal(2L, | ||
new DvCodedText("2", new CodePhrase(new TerminologyId(TerminologyIdCode.LOCAL.getTerminologyId()), "at0006")))), | ||
GUT_ZURECHTKOMMEND(new DvOrdinal(3L, | ||
new DvCodedText("3", new CodePhrase(new TerminologyId(TerminologyIdCode.LOCAL.getTerminologyId()), "at0007")))), | ||
VULNERABEL(new DvOrdinal(4L, | ||
new DvCodedText("4", new CodePhrase(new TerminologyId(TerminologyIdCode.LOCAL.getTerminologyId()), "at0008")))), | ||
GERINGGRADIG_FRAIL(new DvOrdinal(5L, | ||
new DvCodedText("5", new CodePhrase(new TerminologyId(TerminologyIdCode.LOCAL.getTerminologyId()), "at0009")))), | ||
MITTELGRADIG_FRAIL(new DvOrdinal(6L, | ||
new DvCodedText("6", new CodePhrase(new TerminologyId(TerminologyIdCode.LOCAL.getTerminologyId()), "at0010")))), | ||
AUSGEPRAEGT_FRAIL(new DvOrdinal(7L, | ||
new DvCodedText("7", new CodePhrase(new TerminologyId(TerminologyIdCode.LOCAL.getTerminologyId()), "at0011")))), | ||
EXTREM_FRAIL(new DvOrdinal(8L, | ||
new DvCodedText("8", new CodePhrase(new TerminologyId(TerminologyIdCode.LOCAL.getTerminologyId()), "at0012")))), | ||
TERMINAL_ERKRANKT(new DvOrdinal(9L, | ||
new DvCodedText("9", new CodePhrase(new TerminologyId(TerminologyIdCode.LOCAL.getTerminologyId()), "at0013")))); | ||
|
||
private final DvOrdinal berurteilung; | ||
|
||
ClinicalFrailtyBerurteilung(DvOrdinal berurteilung) { | ||
this.berurteilung = berurteilung; | ||
} | ||
|
||
public DvOrdinal getBerurteilung() { | ||
return berurteilung; | ||
} | ||
} |
Oops, something went wrong.