Skip to content

Commit

Permalink
feat: set code.systemische_therapie_art if available
Browse files Browse the repository at this point in the history
  • Loading branch information
pcvolkmer committed Nov 20, 2024
1 parent a3c2ffb commit 194befd
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public static class FhirSystems {
private String miiCsOnkoStrahlentherapieZielgebiet;
private String strahlentherapieProcedureId;
private String systemischeTherapieProcedureId;
private String miiCsOnkoSystemischeTherapieArt;
private String miiCsOnkoSeitenlokalisation;
private String conditionVerStatus;
private String icdo3MorphologieOid;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,17 @@ public Procedure map(SYSTTyp syst, Reference subject) {
procedure.setPerformed(performed);
}

// Set to absent as of now
var code = new CodeableConcept();
code.addCoding().setSystem(fhirProperties.getSystems().getOps()).setCodeElement(dataAbsentCode);
if (null != syst.getTherapieart()) {
code.addCoding()
.setSystem(fhirProperties.getSystems().getMiiCsOnkoSystemischeTherapieArt())
.setCode(syst.getTherapieart().value());
} else {
// Set to absent as of now
code.addCoding()
.setSystem(fhirProperties.getSystems().getOps())
.setCodeElement(dataAbsentCode);
}
procedure.setCode(code);

// TODO: Same as in Strahlentherapie?
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ fhir:
mii-cs-onko-strahlentherapie-strahlenart: "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/CodeSystem/mii-cs-onko-strahlentherapie-strahlenart"
mii-cs-onko-strahlentherapie-zielgebiet: "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/CodeSystem/mii-cs-onko-strahlentherapie-zielgebiet"
mii-cs-onko-seitenlokalisation: "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/CodeSystem/mii-cs-onko-seitenlokalisation"
mii-cs-onko-systemische-therapie-art: "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/CodeSystem/mii-cs-onko-therapie-typ"
profiles:
histologie: "http://dktk.dkfz.de/fhir/StructureDefinition/onco-core-Observation-Histologie"
grading: "http://dktk.dkfz.de/fhir/StructureDefinition/onco-core-Observation-Grading"
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/schema/oBDS_v3.0.3.bindings.xjb
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@
<jaxb:bindings node="//xs:complexType[@name='SYST_Typ']//xs:element[@name='Meldeanlass']/xs:simpleType">
<jaxb:typesafeEnumClass name="Meldeanlass" />
</jaxb:bindings>
<jaxb:bindings node="//xs:element[@name='Therapieart']/xs:simpleType">
<jaxb:typesafeEnumClass name="Therapieart" />
</jaxb:bindings>
</jaxb:bindings>
</jaxb:bindings>
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,8 @@
},
"code": {
"coding": [ {
"system": "http://fhir.de/CodeSystem/bfarm/ops",
"_code": {
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason",
"valueCode": "unknown"
} ]
}
"system": "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/CodeSystem/mii-cs-onko-therapie-typ",
"code": "IM"
} ]
},
"subject": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,8 @@
},
"code": {
"coding": [ {
"system": "http://fhir.de/CodeSystem/bfarm/ops",
"_code": {
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason",
"valueCode": "unknown"
} ]
}
"system": "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/CodeSystem/mii-cs-onko-therapie-typ",
"code": "HO"
} ]
},
"subject": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,8 @@
},
"code": {
"coding": [ {
"system": "http://fhir.de/CodeSystem/bfarm/ops",
"_code": {
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason",
"valueCode": "unknown"
} ]
}
"system": "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/CodeSystem/mii-cs-onko-therapie-typ",
"code": "CH"
} ]
},
"subject": {
Expand Down

0 comments on commit 194befd

Please sign in to comment.