-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle Primaertumor_ICD_Version being unset or not matching regex (
#39) * fix: handle Primaertumor_ICD_Version being unset or not matching regex * fix: handle Meldung.Diagnose.Primaertumor_* unset and default to TumorZuordnung * fix: use distinct ID when condition is generated from a tumorzuordnung avoids overriding existing resources but may cause duplicate diagnosis being present * test: added snapshot tests for previously failing data
- Loading branch information
Showing
7 changed files
with
374 additions
and
14 deletions.
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
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
39 changes: 39 additions & 0 deletions
39
....mapObservation_withGivenObdsXml_shouldMatchSnapshot.diagnosis_set.xml.approved.fhir.json
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 @@ | ||
{ | ||
"resourceType": "Bundle", | ||
"type": "transaction", | ||
"entry": [ { | ||
"fullUrl": "Condition/04c8f27ca021b8fd87ffd3abbde1f4b907bb3d6921fd61c5d4b9a0a756b8d110", | ||
"resource": { | ||
"resourceType": "Condition", | ||
"id": "04c8f27ca021b8fd87ffd3abbde1f4b907bb3d6921fd61c5d4b9a0a756b8d110", | ||
"meta": { | ||
"source": "KR7X825X.ONKOSTAR:obds-to-fhir:0.0.0-test", | ||
"profile": [ "http://dktk.dkfz.de/fhir/StructureDefinition/onco-core-Condition-Primaerdiagnose" ] | ||
}, | ||
"code": { | ||
"coding": [ { | ||
"system": "http://fhir.de/CodeSystem/bfarm/icd-10-gm", | ||
"version": "2010", | ||
"code": "C43.5" | ||
} ] | ||
}, | ||
"subject": { | ||
"reference": "Patient/19cc75fbfb51266ac0149828ae2f8522106e3ba176ceac2b40acb3cb1c9365f9", | ||
"identifier": { | ||
"type": { | ||
"coding": [ { | ||
"system": "http://terminology.hl7.org/CodeSystem/v2-0203", | ||
"code": "MR" | ||
} ] | ||
}, | ||
"system": "https://fhir.diz.uk-erlangen.de/identifiers/patient-id", | ||
"value": "0001234567" | ||
} | ||
} | ||
}, | ||
"request": { | ||
"method": "PUT", | ||
"url": "Condition/04c8f27ca021b8fd87ffd3abbde1f4b907bb3d6921fd61c5d4b9a0a756b8d110" | ||
} | ||
} ] | ||
} |
51 changes: 51 additions & 0 deletions
51
...apObservation_withGivenObdsXml_shouldMatchSnapshot.diagnosis_unset.xml.approved.fhir.json
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,51 @@ | ||
{ | ||
"resourceType": "Bundle", | ||
"type": "transaction", | ||
"entry": [ { | ||
"fullUrl": "Condition/dd9844e53c6d877fb91a9059f1bc0a433e7e892cd272770caa84aad4e7b7189d", | ||
"resource": { | ||
"resourceType": "Condition", | ||
"id": "dd9844e53c6d877fb91a9059f1bc0a433e7e892cd272770caa84aad4e7b7189d", | ||
"meta": { | ||
"source": "KR7X825X.ONKOSTAR:obds-to-fhir:0.0.0-test", | ||
"profile": [ "http://dktk.dkfz.de/fhir/StructureDefinition/onco-core-Condition-Primaerdiagnose" ] | ||
}, | ||
"code": { | ||
"coding": [ { | ||
"system": "http://fhir.de/CodeSystem/bfarm/icd-10-gm", | ||
"version": "2019", | ||
"code": "C43.2" | ||
} ] | ||
}, | ||
"bodySite": [ { | ||
"coding": [ { | ||
"system": "http://dktk.dkfz.de/fhir/onco/core/CodeSystem/SeitenlokalisationCS", | ||
"code": "L", | ||
"display": "links" | ||
}, { | ||
"system": "http://snomed.info/sct", | ||
"code": "7771000", | ||
"display": "Left" | ||
} ] | ||
} ], | ||
"subject": { | ||
"reference": "Patient/19cc75fbfb51266ac0149828ae2f8522106e3ba176ceac2b40acb3cb1c9365f9", | ||
"identifier": { | ||
"type": { | ||
"coding": [ { | ||
"system": "http://terminology.hl7.org/CodeSystem/v2-0203", | ||
"code": "MR" | ||
} ] | ||
}, | ||
"system": "https://fhir.diz.uk-erlangen.de/identifiers/patient-id", | ||
"value": "0001234567" | ||
} | ||
}, | ||
"onsetDateTime": "2019-08-21" | ||
}, | ||
"request": { | ||
"method": "PUT", | ||
"url": "Condition/dd9844e53c6d877fb91a9059f1bc0a433e7e892cd272770caa84aad4e7b7189d" | ||
} | ||
} ] | ||
} |
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,110 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ADT_GEKID xmlns="http://www.gekid.de/namespace" Schema_Version="2.2.3"> | ||
<Absender Absender_ID="KR7X825X" Software_ID="ONKOSTAR" Installations_ID="2030"> | ||
<Absender_Bezeichnung>UKI</Absender_Bezeichnung> | ||
<Absender_Ansprechpartner>Chef</Absender_Ansprechpartner> | ||
<Absender_Anschrift>Irgendwo-Straße 1, 12345 Phantasieland</Absender_Anschrift> | ||
</Absender> | ||
<Menge_Patient> | ||
<Patient> | ||
<Patienten_Stammdaten Patient_ID="0001234567"> | ||
<KrankenversichertenNr>privatversichert</KrankenversichertenNr> | ||
<KrankenkassenNr>1234567890</KrankenkassenNr> | ||
<Patienten_Nachname>TestpatientEnzensperger</Patienten_Nachname> | ||
<Patienten_Titel></Patienten_Titel> | ||
<Patienten_Vornamen>Horst</Patienten_Vornamen> | ||
<Patienten_Geburtsname></Patienten_Geburtsname> | ||
<Patienten_Geschlecht>M</Patienten_Geschlecht> | ||
<Patienten_Geburtsdatum>01.01.1950</Patienten_Geburtsdatum> | ||
<Menge_Adresse> | ||
<Adresse> | ||
<Patienten_Strasse>Irgendwo-Straße 2</Patienten_Strasse> | ||
<Patienten_Hausnummer>2</Patienten_Hausnummer> | ||
<Patienten_Land>DE</Patienten_Land> | ||
<Patienten_PLZ>12345</Patienten_PLZ> | ||
<Patienten_Ort>Phantasieland</Patienten_Ort> | ||
</Adresse> | ||
</Menge_Adresse> | ||
</Patienten_Stammdaten> | ||
<Menge_Meldung> | ||
<Meldung Meldung_ID="000000B2-KR7X825X" Melder_ID="KR7X825X"> | ||
<Meldedatum>30.01.2024</Meldedatum> | ||
<Meldebegruendung>D</Meldebegruendung> | ||
<Meldeanlass>histologie_zytologie</Meldeanlass> | ||
<Tumorzuordnung Tumor_ID="1"> | ||
<Primaertumor_ICD_Code>C43.2</Primaertumor_ICD_Code> | ||
<Primaertumor_ICD_Version>10 2019 GM</Primaertumor_ICD_Version> | ||
<Diagnosedatum>21.08.2019</Diagnosedatum> | ||
<Seitenlokalisation>L</Seitenlokalisation> | ||
</Tumorzuordnung> | ||
<Diagnose Tumor_ID="1"> | ||
<Primaertumor_ICD_Code>C43.5</Primaertumor_ICD_Code> | ||
<Primaertumor_ICD_Version>10 2010 GM</Primaertumor_ICD_Version> | ||
<Primaertumor_Diagnosetext>Bösartiges Melanom des Rumpfes</Primaertumor_Diagnosetext> | ||
<Menge_Histologie> | ||
<Histologie Histologie_ID="1234567"> | ||
<Tumor_Histologiedatum>21.08.2019</Tumor_Histologiedatum> | ||
<Histologie_EinsendeNr>p 21557-19</Histologie_EinsendeNr> | ||
<Morphologie_Code>8720/3</Morphologie_Code> | ||
<Morphologie_ICD_O_Version>33</Morphologie_ICD_O_Version> | ||
</Histologie> | ||
</Menge_Histologie> | ||
<Modul_Allgemein> | ||
<DatumStudienrekrutierung> | ||
<NU>N</NU> | ||
</DatumStudienrekrutierung> | ||
</Modul_Allgemein> | ||
<Anmerkung> *** Pathobericht</Anmerkung> | ||
</Diagnose> | ||
<Menge_Zusatzitem> | ||
<Zusatzitem> | ||
<Art>Einsender_Vorname</Art> | ||
<Wert>Sepp</Wert> | ||
</Zusatzitem> | ||
<Zusatzitem> | ||
<Art>Einsender_Nachname</Art> | ||
<Wert>Prof. Dr. Doof</Wert> | ||
</Zusatzitem> | ||
<Zusatzitem> | ||
<Art>Einsender_Titel</Art> | ||
<Wert>-</Wert> | ||
</Zusatzitem> | ||
<Zusatzitem> | ||
<Art>Einsender_Strasse</Art> | ||
<Wert>Irgendwo-Straße</Wert> | ||
</Zusatzitem> | ||
<Zusatzitem> | ||
<Art>Einsender_Hausnummer</Art> | ||
<Wert>1</Wert> | ||
</Zusatzitem> | ||
<Zusatzitem> | ||
<Art>Einsender_Ort</Art> | ||
<Wert>Phantasieland</Wert> | ||
</Zusatzitem> | ||
<Zusatzitem> | ||
<Art>Einsender_PLZ</Art> | ||
<Wert>12345</Wert> | ||
</Zusatzitem> | ||
<Zusatzitem> | ||
<Art>Einsender_Einrichtung</Art> | ||
<Wert>Prof. Dr. Doof, UKI, HG</Wert> | ||
</Zusatzitem> | ||
<Zusatzitem> | ||
<Art>Einsender_BSNR</Art> | ||
<Wert>-</Wert> | ||
</Zusatzitem> | ||
<Zusatzitem> | ||
<Art>Einsender_LANR</Art> | ||
<Wert>-</Wert> | ||
</Zusatzitem> | ||
</Menge_Zusatzitem> | ||
</Meldung> | ||
</Menge_Meldung> | ||
</Patient> | ||
</Menge_Patient> | ||
<Menge_Melder> | ||
<Melder Melder_ID="KR7X825X"> | ||
<Meldende_Stelle>KR7X825X</Meldende_Stelle> | ||
</Melder> | ||
</Menge_Melder> | ||
</ADT_GEKID> |
Oops, something went wrong.