Skip to content

Commit

Permalink
use custom system for medical statement id
Browse files Browse the repository at this point in the history
  • Loading branch information
pcvolkmer committed Nov 25, 2024
1 parent 4760193 commit 6f8625e
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 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 systemischeTherapieMedicationStatementId;
private String miiCsOnkoSystemischeTherapieArt;
private String miiCsOnkoSeitenlokalisation;
private String miiCsTherapieGrundEnde;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ public Bundle map(SYSTTyp syst, Reference patient, Reference procedure) {
// if not we may instead need to construct the ID from the patient-id + others.
var identifier =
new Identifier()
.setSystem(fhirProperties.getSystems().getSystemischeTherapieProcedureId())
.setSystem(
fhirProperties.getSystems().getSystemischeTherapieMedicationStatementId())
.setValue(String.format("%s_%s", syst.getSYSTID(), substanzId));
systMedicationStatement.addIdentifier(identifier);
systMedicationStatement.setId(computeResourceIdFromIdentifier(identifier));
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 @@ -30,6 +30,7 @@ fhir:
psaObservationId: "${fhir.default.baseSystemUrl}/obds-to-fhir/identifiers/psa-observation-id"
strahlentherapie-procedure-id: "${fhir.default.baseSystemUrl}/obds-to-fhir/identifiers/strahlentherapie-procedure-id"
systemische-therapie-procedure-id: "${fhir.default.baseSystemUrl}/obds-to-fhir/identifiers/systemische-therapie-procedure-id"
systemische-therapie-medication-statement-id: "${fhir.default.baseSystemUrl}/obds-to-fhir/identifiers/systemische-therapie-medication-statement-id"
loinc: "http://loinc.org"
icdo3Morphologie: "http://terminology.hl7.org/CodeSystem/icd-o-3"
icdo3MorphologieOid: "urn:oid:2.16.840.1.113883.6.43.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"resourceType": "Bundle",
"type": "transaction",
"entry": [ {
"fullUrl": "MedicationStatement/99635bf8744dadda1f8b293046f2bfb3d021938263616e6228523113af2695c1",
"fullUrl": "MedicationStatement/050a031e5a9043c28c565c6b60550c3d34cd059bc2f24c195cdb807f099cd978",
"resource": {
"resourceType": "MedicationStatement",
"id": "99635bf8744dadda1f8b293046f2bfb3d021938263616e6228523113af2695c1",
"id": "050a031e5a9043c28c565c6b60550c3d34cd059bc2f24c195cdb807f099cd978",
"meta": {
"profile": [ "https://www.medizininformatik-initiative.de/fhir/core/modul-medikation/StructureDefinition/MedicationStatement" ]
},
"identifier": [ {
"system": "https://bzkf.github.io/obds-to-fhir/identifiers/systemische-therapie-procedure-id",
"system": "https://bzkf.github.io/obds-to-fhir/identifiers/systemische-therapie-medication-statement-id",
"value": "101_IN-1_L01FF05"
} ],
"partOf": [ {
Expand All @@ -33,7 +33,7 @@
},
"request": {
"method": "PUT",
"url": "MedicationStatement/99635bf8744dadda1f8b293046f2bfb3d021938263616e6228523113af2695c1"
"url": "MedicationStatement/050a031e5a9043c28c565c6b60550c3d34cd059bc2f24c195cdb807f099cd978"
}
} ]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"resourceType": "Bundle",
"type": "transaction",
"entry": [ {
"fullUrl": "MedicationStatement/2be692115f7383b050211e2c4b857655192448b28772b0a5af15839b1a84fa5e",
"fullUrl": "MedicationStatement/e4b35c4756c9668e9c2b92f281667382020c401482e0a674566a695cd20a4cfa",
"resource": {
"resourceType": "MedicationStatement",
"id": "2be692115f7383b050211e2c4b857655192448b28772b0a5af15839b1a84fa5e",
"id": "e4b35c4756c9668e9c2b92f281667382020c401482e0a674566a695cd20a4cfa",
"meta": {
"profile": [ "https://www.medizininformatik-initiative.de/fhir/core/modul-medikation/StructureDefinition/MedicationStatement" ]
},
"identifier": [ {
"system": "https://bzkf.github.io/obds-to-fhir/identifiers/systemische-therapie-procedure-id",
"system": "https://bzkf.github.io/obds-to-fhir/identifiers/systemische-therapie-medication-statement-id",
"value": "11_1_Innere.1_Bicalutamid_fa96"
} ],
"partOf": [ {
Expand All @@ -29,7 +29,7 @@
},
"request": {
"method": "PUT",
"url": "MedicationStatement/2be692115f7383b050211e2c4b857655192448b28772b0a5af15839b1a84fa5e"
"url": "MedicationStatement/e4b35c4756c9668e9c2b92f281667382020c401482e0a674566a695cd20a4cfa"
}
} ]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"resourceType": "Bundle",
"type": "transaction",
"entry": [ {
"fullUrl": "MedicationStatement/69e986083bed8b3ee0519fda269bfa44104d421348ccd8214f1af901b26650df",
"fullUrl": "MedicationStatement/da9d78a5d066bba6acd32a9a903c8663ecc1421cb373dcb51566b6d23dd30df7",
"resource": {
"resourceType": "MedicationStatement",
"id": "69e986083bed8b3ee0519fda269bfa44104d421348ccd8214f1af901b26650df",
"id": "da9d78a5d066bba6acd32a9a903c8663ecc1421cb373dcb51566b6d23dd30df7",
"meta": {
"profile": [ "https://www.medizininformatik-initiative.de/fhir/core/modul-medikation/StructureDefinition/MedicationStatement" ]
},
"identifier": [ {
"system": "https://bzkf.github.io/obds-to-fhir/identifiers/systemische-therapie-procedure-id",
"system": "https://bzkf.github.io/obds-to-fhir/identifiers/systemische-therapie-medication-statement-id",
"value": "12_1_Innere.1_Paclitaxel_a0a4"
} ],
"partOf": [ {
Expand All @@ -29,7 +29,7 @@
},
"request": {
"method": "PUT",
"url": "MedicationStatement/69e986083bed8b3ee0519fda269bfa44104d421348ccd8214f1af901b26650df"
"url": "MedicationStatement/da9d78a5d066bba6acd32a9a903c8663ecc1421cb373dcb51566b6d23dd30df7"
}
} ]
}

0 comments on commit 6f8625e

Please sign in to comment.