Skip to content

Commit

Permalink
Smaller bugfixes for accidents and addition of insurance type
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelB committed Nov 24, 2023
1 parent 2442d6e commit d85fd36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ private MedicationRequest createMedicationRequest(String medicationId, String pa
// </extension>
medicationRequest.addExtension(multiplePrescription);

// <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Accident">
// <extension url="https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Accident">
// <extension url="unfallkennzeichen">
// <valueCoding>
// <system value="https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Ursache_Type" />
Expand All @@ -530,14 +530,14 @@ private MedicationRequest createMedicationRequest(String medicationId, String pa
// </extension>

if(unfallkennzeichen) {
Extension KBV_EX_ERP_Accident = new Extension("https://fhir.kbv.de/StructureDefinition/KBV_EX_ERP_Accident");
Extension KBV_EX_FOR_Accident = new Extension("https://fhir.kbv.de/StructureDefinition/KBV_EX_FOR_Accident");
Coding unfallkennzeichenValueCoding = new Coding("https://fhir.kbv.de/CodeSystem/KBV_CS_FOR_Ursache_Type",
"1", null);
KBV_EX_ERP_Accident.addExtension(new Extension("unfallkennzeichen", unfallkennzeichenValueCoding));
KBV_EX_FOR_Accident.addExtension(new Extension("unfallkennzeichen", unfallkennzeichenValueCoding));
DateType unfalltagDate = new DateType(new Date());
unfalltagDate.setPrecision(TemporalPrecisionEnum.DAY);
KBV_EX_ERP_Accident.addExtension(new Extension("unfalltag", unfalltagDate));
medicationRequest.addExtension(KBV_EX_ERP_Accident);
KBV_EX_FOR_Accident.addExtension(new Extension("unfalltag", unfalltagDate));
medicationRequest.addExtension(KBV_EX_FOR_Accident);
}

medicationRequest.setStatus(MedicationRequest.MedicationRequestStatus.ACTIVE)
Expand Down

0 comments on commit d85fd36

Please sign in to comment.