Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ jobs:
needs: tests
runs-on: ubuntu-latest
env:
ONTOLOGY_GIT_TAG: v3.8.3
ONTOLOGY_GIT_TAG: v3.9.0-experimental.0
ELASTIC_HOST: http://localhost:9200
ELASTIC_FILEPATH: https://github.com/medizininformatik-initiative/fhir-ontology-generator/releases/download/TAGPLACEHOLDER/
ELASTIC_FILENAME: elastic.zip
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ services:
environment:
ES_HOST: http://dataportal-elastic
ES_PORT: 9200
ONTO_GIT_TAG: v3.8.3
ONTO_GIT_TAG: v3.9.0-experimental.0
ONTO_REPO: https://github.com/medizininformatik-initiative/fhir-ontology-generator/releases/download
DOWNLOAD_FILENAME: elastic.zip
EXIT_ON_EXISTING_INDICES: false
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<java.version>17</java.version>
<mockwebserver.version>5.1.0</mockwebserver.version>
<okhttp3.version>4.10.0</okhttp3.version>
<ontology-tag>v3.8.3</ontology-tag>
<ontology-tag>v3.9.0-experimental.0</ontology-tag>
</properties>

<dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ public record AttributeDefinition(
@JsonProperty(value = "precision", required = true, defaultValue = "0") double precision,
@JsonProperty(value = "min") Double min,
@JsonProperty(value = "max") Double max,
@JsonProperty("referencedCriteriaSet") String referencedCriteriaSet,
@JsonProperty("referencedValueSet") String referencedValueSet
@JsonProperty("referencedCriteriaSet") List<String> referencedCriteriaSets,
@JsonProperty("referencedValueSet") List<String> referencedValueSets
) {
public AttributeDefinition {
selectableConcepts = (selectableConcepts == null) ? List.of() : selectableConcepts;
allowedUnits = (allowedUnits == null) ? List.of() : allowedUnits;
referencedCriteriaSets = (referencedCriteriaSets == null) ? List.of() : referencedCriteriaSets;
referencedValueSets = (referencedValueSets == null) ? List.of() : referencedValueSets;
}
}
16 changes: 10 additions & 6 deletions src/main/resources/static/v3/api-docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1442,13 +1442,17 @@ components:
examples:
- 1
referencedCriteriaSet:
type: string
examples:
- http://fdpg.mii.cds/CriteriaSet/Diagnose/icd-10-gm
type: array
items:
type: string
examples:
- http://fdpg.mii.cds/CriteriaSet/Diagnose/icd-10-gm
referencedValueSet:
type: string
examples:
- http://hl7.org/fhir/sid/icd-o-3
type: array
items:
type: string
examples:
- http://hl7.org/fhir/sid/icd-o-3
type:
type: string
examples:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ void testConstructorWithValues() {
.precision(0.0)
.min(0.0)
.max(0.0)
.referencedCriteriaSet(null)
.referencedValueSet(null)
.referencedCriteriaSets(null)
.referencedValueSets(null)
.build();

assertNotNull(attributeDefinition);
Expand All @@ -47,8 +47,8 @@ public void testConstructorWithNull() {
.precision(0.0)
.min(0.0)
.max(0.0)
.referencedCriteriaSet(null)
.referencedValueSet(null)
.referencedCriteriaSets(null)
.referencedValueSets(null)
.build();

assertNotNull(attributeDefinition);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ private AttributeDefinition createAttributeDefinition() {
.attributeCode(createTermCode())
.type(ValueDefinitonType.CONCEPT)
.optional(false)
.referencedCriteriaSet("http://my.reference.criteria/set")
.referencedValueSet("http://my.reference.value/set")
.referencedCriteriaSets(List.of("http://my.reference.criteria/set"))
.referencedValueSets(List.of("http://my.reference.value/set"))
.comparator(Comparator.EQUAL)
.precision(1.0)
.selectableConcepts(List.of(createTermCode()))
Expand Down
Loading