Skip to content

Commit

Permalink
#382 - Change display and translations structure for criteria and con…
Browse files Browse the repository at this point in the history
…cepts

- remove nested declaration from elastic search documents (seems to be unnecessary, but should be monitored)
  • Loading branch information
michael-82 committed Oct 18, 2024
1 parent e915994 commit f001810
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
@Document(indexName = "codeable_concept")
public record CodeableConceptDocument(
@Id String id,
@Field(type = FieldType.Nested, includeInParent = true, name = "termcode")
@Field(name = "termcode")
TermCode termCode,
@Field(type = FieldType.Nested, includeInParent = true, name = "value_sets")
@Field(name = "value_sets")
List<String> valueSets
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ public record OntologyItemDocument(
String termcode,
@Field(name = "kds_module") String kdsModule,

@Field(type = FieldType.Nested, includeInParent = true, name = "translations")
@Field(name = "translations")
Collection<Translation> translations,
@Field(type = FieldType.Nested, includeInParent = true, name = "parents")
@Field(name = "parents")
Collection<Relative> parents,
@Field(type = FieldType.Nested, includeInParent = true, name = "children")
@Field(name = "children")
Collection<Relative> children,
@Field(type = FieldType.Nested, includeInParent = true, name = "related_terms")
@Field(name = "related_terms")
Collection<Relative> relatedTerms
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
@Builder
@Document(indexName = "ontology")
public record OntologyItemRelationsDocument(
@Field(type = FieldType.Nested, includeInParent = true, name = "translations")
@Field(name = "translations")
Collection<Translation> translations,
@Field(type = FieldType.Nested, includeInParent = true, name = "parents")
@Field(name = "parents")
Collection<Relative> parents,
@Field(type = FieldType.Nested, includeInParent = true, name = "children")
@Field(name = "children")
Collection<Relative> children,
@Field(type = FieldType.Nested, includeInParent = true, name = "related_terms")
@Field(name = "related_terms")
Collection<Relative> relatedTerms
) {
}

0 comments on commit f001810

Please sign in to comment.