Skip to content

Include selectable boolean in /terminology/entry/{id}/relations response #664

@Shayan1375

Description

@Shayan1375

Description

Currently, the /terminology/entry/{id}/relations endpoint returns detailed information about a terminology entry, including its children, parents, translations, and related terms. There should be an additionall boolean selectable to each entry (children, parents, and related terms) indicating whether the entry can be selected in the frontend.
Example response:

{
  "display": {
    "original": "display entry",
    "translations": [
      {
        "language": "de-DE",
        "value": "localized entry"
      }
    ]
  },
  "parents": [
    {
      "name": "Endokrine, Ernährungs- und Stoffwechselerkrankungen",
	"selectable": true,
      "contextualizedTermcodeHash": "c55d0d62-6c47-30b0-94b2-afa383ce35f7"
    }
  ],
  "children": [
    {
      "name": "Endokrine, Ernährungs- und Stoffwechselerkrankungen",
	"selectable": true,
      "contextualizedTermcodeHash": "c55d0d62-6c47-30b0-94b2-afa383ce35f7"
    }
  ],
  "relatedTerms": [
    {
      "name": "Endokrine, Ernährungs- und Stoffwechselerkrankungen",
	"selectable": false,
      "contextualizedTermcodeHash": "c55d0d62-6c47-30b0-94b2-afa383ce35f7"
    }
  ]
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions