Skip to content

Commit

Permalink
#318 - Add endpoints for profile data
Browse files Browse the repository at this point in the history
- in dse profile filter, change single referencedCriteriaSet to list of value set urls
- change v9_1 script to v9 since there is no 2nd part any more (is a repeatable now)
  • Loading branch information
michael-82 committed Aug 15, 2024
1 parent f7b0b7e commit 46595a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Builder;

import java.util.List;

@JsonInclude(JsonInclude.Include.NON_NULL)
@Builder
public record Filter(

Check warning on line 11 in src/main/java/de/numcodex/feasibility_gui_backend/dse/api/Filter.java

View check run for this annotation

Codecov / codecov/patch

src/main/java/de/numcodex/feasibility_gui_backend/dse/api/Filter.java#L11

Added line #L11 was not covered by tests
@JsonProperty String type,
@JsonProperty String name,
@JsonProperty(value = "ui_type") String uiType,
@JsonProperty String referencedCriteriaSet
@JsonProperty List<String> valueSetUrls
) {
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
DELETE FROM dse_profile;
ALTER SEQUENCE public.dse_profile_id_seq RESTART WITH 1;

INSERT INTO dse_profile(id, url, entry) VALUES (1, 'https://www.medizininformatik-initiative.de/fhir/core/modul-labor/StructureDefinition/ObservationLab', '{ "url": "https://www.medizininformatik-initiative.de/fhir/core/modul-labor/StructureDefinition/ObservationLab", "display": "Profile - Observation - Laboruntersuchung", "fields":[ { "id": "Observation.value[x]", "display": "Actual result", "name": "value[x]", "children": [ { "id": "Observation.value[x]:valueQuantity", "display": "Actual result", "name": "valueQuantity", "children": [ { "id": "Observation.value[x]:valueQuantity.id", "display": "Unique id for inter-element referencing", "name": "id" }, { "id": "Observation.value[x]:valueQuantity.extension", "display": "Additional content defined by implementations", "name": "extension" }, { "id": "Observation.value[x]:valueQuantity.value", "display": "Numerical value (with implicit precision)", "name": "value" }, { "id": "Observation.value[x]:valueQuantity.comparator", "display": "< | <= | >= | > - how to understand the value", "name": "comparator" }, { "id": "Observation.value[x]:valueQuantity.unit", "display": "Unit representation", "name": "unit" }, { "id": "Observation.value[x]:valueQuantity.system", "display": "System that defines coded unit form", "name": "system" }, { "id": "Observation.value[x]:valueQuantity.code", "display": "Coded form of the unit", "name": "code" } ] }, { "id": "Observation.value[x]:valueCodeableConcept", "display": "Actual result", "name": "valueCodeableConcept", "children": [ { "id": "Observation.value[x]:valueCodeableConcept.id", "display": "Unique id for inter-element referencing", "name": "id" }, { "id": "Observation.value[x]:valueCodeableConcept.extension", "display": "Additional content defined by implementations", "name": "extension" }, { "id": "Observation.value[x]:valueCodeableConcept.coding", "display": "Code defined by a terminology system", "name": "coding", "children": [ { "id": "Observation.value[x]:valueCodeableConcept.coding.id", "display": "Unique id for inter-element referencing", "name": "id" }, { "id": "Observation.value[x]:valueCodeableConcept.coding.extension", "display": "Additional content defined by implementations", "name": "extension" }, { "id": "Observation.value[x]:valueCodeableConcept.coding.system", "display": "Identity of the terminology system", "name": "system" }, { "id": "Observation.value[x]:valueCodeableConcept.coding.version", "display": "Version of the system - if relevant", "name": "version" }, { "id": "Observation.value[x]:valueCodeableConcept.coding.code", "display": "Symbol in syntax defined by the system", "name": "code" }, { "id": "Observation.value[x]:valueCodeableConcept.coding.display", "display": "Representation defined by the system", "name": "display" }, { "id": "Observation.value[x]:valueCodeableConcept.coding.userSelected", "display": "If this coding was chosen directly by the user", "name": "userSelected" } ] }, { "id": "Observation.value[x]:valueCodeableConcept.text", "display": "Plain text representation of the concept", "name": "text" } ] } ] } ], "filters":[ { "type": "token", "name": "code", "ui_type": "code", "referencedCriteriaSet": "http://fdpg.mii.cds/CriteriaSet/Diagnose/icd-10-gm" }, { "type": "date", "name": "date", "ui_type": "timeRestriction" } ]}');
INSERT INTO dse_profile(id, url, entry) VALUES (1, 'https://www.medizininformatik-initiative.de/fhir/core/modul-labor/StructureDefinition/ObservationLab', '{ "url": "https://www.medizininformatik-initiative.de/fhir/core/modul-labor/StructureDefinition/ObservationLab", "display": "Profile - Observation - Laboruntersuchung", "fields":[ { "id": "Observation.value[x]", "display": "Actual result", "name": "value[x]", "children": [ { "id": "Observation.value[x]:valueQuantity", "display": "Actual result", "name": "valueQuantity", "children": [ { "id": "Observation.value[x]:valueQuantity.id", "display": "Unique id for inter-element referencing", "name": "id" }, { "id": "Observation.value[x]:valueQuantity.extension", "display": "Additional content defined by implementations", "name": "extension" }, { "id": "Observation.value[x]:valueQuantity.value", "display": "Numerical value (with implicit precision)", "name": "value" }, { "id": "Observation.value[x]:valueQuantity.comparator", "display": "< | <= | >= | > - how to understand the value", "name": "comparator" }, { "id": "Observation.value[x]:valueQuantity.unit", "display": "Unit representation", "name": "unit" }, { "id": "Observation.value[x]:valueQuantity.system", "display": "System that defines coded unit form", "name": "system" }, { "id": "Observation.value[x]:valueQuantity.code", "display": "Coded form of the unit", "name": "code" } ] }, { "id": "Observation.value[x]:valueCodeableConcept", "display": "Actual result", "name": "valueCodeableConcept", "children": [ { "id": "Observation.value[x]:valueCodeableConcept.id", "display": "Unique id for inter-element referencing", "name": "id" }, { "id": "Observation.value[x]:valueCodeableConcept.extension", "display": "Additional content defined by implementations", "name": "extension" }, { "id": "Observation.value[x]:valueCodeableConcept.coding", "display": "Code defined by a terminology system", "name": "coding", "children": [ { "id": "Observation.value[x]:valueCodeableConcept.coding.id", "display": "Unique id for inter-element referencing", "name": "id" }, { "id": "Observation.value[x]:valueCodeableConcept.coding.extension", "display": "Additional content defined by implementations", "name": "extension" }, { "id": "Observation.value[x]:valueCodeableConcept.coding.system", "display": "Identity of the terminology system", "name": "system" }, { "id": "Observation.value[x]:valueCodeableConcept.coding.version", "display": "Version of the system - if relevant", "name": "version" }, { "id": "Observation.value[x]:valueCodeableConcept.coding.code", "display": "Symbol in syntax defined by the system", "name": "code" }, { "id": "Observation.value[x]:valueCodeableConcept.coding.display", "display": "Representation defined by the system", "name": "display" }, { "id": "Observation.value[x]:valueCodeableConcept.coding.userSelected", "display": "If this coding was chosen directly by the user", "name": "userSelected" } ] }, { "id": "Observation.value[x]:valueCodeableConcept.text", "display": "Plain text representation of the concept", "name": "text" } ] } ] } ], "filters":[ { "type": "token", "name": "code", "ui_type": "code", "valueSetUrls": ["http://fdpg.mii.cds/CriteriaSet/Diagnose/icd-10-gm"] }, { "type": "date", "name": "date", "ui_type": "timeRestriction" } ]}');

0 comments on commit 46595a0

Please sign in to comment.