Skip to content

Commit

Permalink
added observationCategory in FHIRProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
cfischer27 committed Dec 9, 2024
1 parent 82a5107 commit 1311da1
Show file tree
Hide file tree
Showing 28 changed files with 436 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public static class FhirSystems {
private String atcBfarm;
private String atcWho;
private String observationHistologieId;
private String observationCategory;
}

@Data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ public List<Observation> map(
// Category
var laboratory =
new CodeableConcept(
new Coding(
fhirProperties.getSystems().getObservationCategorySystem(), "laboratory", ""));
new Coding(fhirProperties.getSystems().getObservationCategory(), "laboratory", ""));
List<CodeableConcept> list = new ArrayList<>();
list.add(laboratory);
obs_befallen.setCategory(list);
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 @@ -74,6 +74,7 @@ fhir:
mii-cs-therapie-grund-ende: "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/CodeSystem/mii-cs-therapie-grund-ende"
atcBfarm: "http://fhir.de/CodeSystem/bfarm/atc"
atcWho: "http://www.whocc.no/atc"
observationCategory: "http://terminology.hl7.org/CodeSystem/observation-category"
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
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ static void beforeAll(@Autowired FhirProperties fhirProps) {

@ParameterizedTest
@CsvSource({"Testpatient_1.xml", "Testpatient_2.xml", "Testpatient_3.xml"})
void map_withGivenObds_shouldCreateValidObservation(String sourceFile)
throws IOException {
void map_withGivenObds_shouldCreateValidObservation(String sourceFile) throws IOException {
final var resource = this.getClass().getClassLoader().getResource("obds3/" + sourceFile);
assertThat(resource).isNotNull();

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"resourceType": "Observation",
"meta": {
"profile": [ "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/StructureDefinition/mii-pr-onko-anzahl-befallene-lymphknoten" ]
},
"identifier": [ {
"system": "https://bzkf.github.io/obds-to-fhir/identifiers/observation-histologie-id",
"value": "521_befallen"
} ],
"status": "final",
"category": [ {
"coding": [ {
"system": "http://hl7.org/fhir/observation-category",
"code": "laboratory"
} ]
} ],
"code": {
"coding": [ {
"system": "http://loinc.org",
"code": "21893-3"
}, {
"system": "http://snomed.info/sct",
"code": "443527007"
} ]
},
"subject": {
"reference": "Patient/any"
},
"effectiveDateTime": "2020-03-05",
"valueQuantity": {
"value": 2,
"system": "http://unitsofmeasure.org",
"code": "1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"resourceType": "Observation",
"meta": {
"profile": [ "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/StructureDefinition/mii-pr-onko-anzahl-untersuchte-lymphknoten" ]
},
"identifier": [ {
"system": "https://bzkf.github.io/obds-to-fhir/identifiers/observation-histologie-id",
"value": "521_untersucht"
} ],
"status": "final",
"category": [ {
"coding": [ {
"system": "http://hl7.org/fhir/observation-category",
"code": "laboratory"
} ]
} ],
"code": {
"coding": [ {
"system": "http://loinc.org",
"code": "21894-1"
}, {
"system": "http://snomed.info/sct",
"code": "444025001"
} ]
},
"subject": {
"reference": "Patient/any"
},
"effectiveDateTime": "2020-03-05",
"valueQuantity": {
"value": 10,
"system": "http://unitsofmeasure.org",
"code": "1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"resourceType": "Observation",
"meta": {
"profile": [ "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/StructureDefinition/mii-pr-onko-anzahl-befallene-sentinel-lymphknoten" ]
},
"identifier": [ {
"system": "https://bzkf.github.io/obds-to-fhir/identifiers/observation-histologie-id",
"value": "523_befallen_sentinel"
} ],
"status": "final",
"category": [ {
"coding": [ {
"system": "http://hl7.org/fhir/observation-category",
"code": "laboratory"
} ]
} ],
"code": {
"coding": [ {
"system": "http://loinc.org",
"code": "92832-5"
}, {
"system": "http://snomed.info/sct",
"code": "1264491009"
} ]
},
"subject": {
"reference": "Patient/any"
},
"effectiveDateTime": "2021-06-01",
"valueQuantity": {
"value": 1,
"system": "http://unitsofmeasure.org",
"code": "1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"resourceType": "Observation",
"meta": {
"profile": [ "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/StructureDefinition/mii-pr-onko-anzahl-untersuchte-sentinel-lymphknoten" ]
},
"identifier": [ {
"system": "https://bzkf.github.io/obds-to-fhir/identifiers/observation-histologie-id",
"value": "523_untersucht_sentinel"
} ],
"status": "final",
"category": [ {
"coding": [ {
"system": "http://hl7.org/fhir/observation-category",
"code": "laboratory"
} ]
} ],
"code": {
"coding": [ {
"system": "http://loinc.org",
"code": "85347-3"
}, {
"system": "http://snomed.info/sct",
"code": "444411008"
} ]
},
"subject": {
"reference": "Patient/any"
},
"effectiveDateTime": "2021-06-01",
"valueQuantity": {
"value": 1,
"system": "http://unitsofmeasure.org",
"code": "1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"resourceType": "Observation",
"meta": {
"profile": [ "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/StructureDefinition/mii-pr-onko-anzahl-befallene-sentinel-lymphknoten" ]
},
"identifier": [ {
"system": "https://bzkf.github.io/obds-to-fhir/identifiers/observation-histologie-id",
"value": "521_befallen_sentinel"
} ],
"status": "final",
"category": [ {
"coding": [ {
"system": "http://hl7.org/fhir/observation-category",
"code": "laboratory"
} ]
} ],
"code": {
"coding": [ {
"system": "http://loinc.org",
"code": "92832-5"
}, {
"system": "http://snomed.info/sct",
"code": "1264491009"
} ]
},
"subject": {
"reference": "Patient/any"
},
"effectiveDateTime": "2020-03-05",
"valueQuantity": {
"value": 1,
"system": "http://unitsofmeasure.org",
"code": "1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"resourceType": "Observation",
"meta": {
"profile": [ "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/StructureDefinition/mii-pr-onko-anzahl-untersuchte-sentinel-lymphknoten" ]
},
"identifier": [ {
"system": "https://bzkf.github.io/obds-to-fhir/identifiers/observation-histologie-id",
"value": "521_untersucht_sentinel"
} ],
"status": "final",
"category": [ {
"coding": [ {
"system": "http://hl7.org/fhir/observation-category",
"code": "laboratory"
} ]
} ],
"code": {
"coding": [ {
"system": "http://loinc.org",
"code": "85347-3"
}, {
"system": "http://snomed.info/sct",
"code": "444411008"
} ]
},
"subject": {
"reference": "Patient/any"
},
"effectiveDateTime": "2020-03-05",
"valueQuantity": {
"value": 2,
"system": "http://unitsofmeasure.org",
"code": "1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"resourceType": "Observation",
"meta": {
"profile": [ "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/StructureDefinition/mii-pr-onko-anzahl-befallene-lymphknoten" ]
},
"identifier": [ {
"system": "https://bzkf.github.io/obds-to-fhir/identifiers/observation-histologie-id",
"value": "522_befallen"
} ],
"status": "final",
"category": [ {
"coding": [ {
"system": "http://hl7.org/fhir/observation-category",
"code": "laboratory"
} ]
} ],
"code": {
"coding": [ {
"system": "http://loinc.org",
"code": "21893-3"
}, {
"system": "http://snomed.info/sct",
"code": "443527007"
} ]
},
"subject": {
"reference": "Patient/any"
},
"effectiveDateTime": "2020-03-05",
"valueQuantity": {
"value": 2,
"system": "http://unitsofmeasure.org",
"code": "1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"resourceType": "Observation",
"meta": {
"profile": [ "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/StructureDefinition/mii-pr-onko-anzahl-untersuchte-lymphknoten" ]
},
"identifier": [ {
"system": "https://bzkf.github.io/obds-to-fhir/identifiers/observation-histologie-id",
"value": "522_untersucht"
} ],
"status": "final",
"category": [ {
"coding": [ {
"system": "http://hl7.org/fhir/observation-category",
"code": "laboratory"
} ]
} ],
"code": {
"coding": [ {
"system": "http://loinc.org",
"code": "21894-1"
}, {
"system": "http://snomed.info/sct",
"code": "444025001"
} ]
},
"subject": {
"reference": "Patient/any"
},
"effectiveDateTime": "2020-03-05",
"valueQuantity": {
"value": 10,
"system": "http://unitsofmeasure.org",
"code": "1"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"resourceType": "Observation",
"meta": {
"profile": [ "https://www.medizininformatik-initiative.de/fhir/ext/modul-onko/StructureDefinition/mii-pr-onko-anzahl-befallene-sentinel-lymphknoten" ]
},
"identifier": [ {
"system": "https://bzkf.github.io/obds-to-fhir/identifiers/observation-histologie-id",
"value": "522_befallen_sentinel"
} ],
"status": "final",
"category": [ {
"coding": [ {
"system": "http://hl7.org/fhir/observation-category",
"code": "laboratory"
} ]
} ],
"code": {
"coding": [ {
"system": "http://loinc.org",
"code": "92832-5"
}, {
"system": "http://snomed.info/sct",
"code": "1264491009"
} ]
},
"subject": {
"reference": "Patient/any"
},
"effectiveDateTime": "2020-03-05",
"valueQuantity": {
"value": 1,
"system": "http://unitsofmeasure.org",
"code": "1"
}
}
Loading

0 comments on commit 1311da1

Please sign in to comment.