Onto-Med / top-api

REST API of the TOP Framework
https://onto-med.github.io/top-api/
MIT License
0 stars 1 forks source link

Handling complex resources #140

Closed AlexU75 closed 1 year ago

AlexU75 commented 1 year ago
ChristophB commented 1 year ago

Could you please provide an example for Value.fields?

AlexU75 commented 1 year ago

E.g. 'id' and 'class' for Encounter or 'dose' and 'rate' for MedicationAdministration.

ChristophB commented 1 year ago

Something like the following Value?

{
  "dataType": "number",
  "fields": {
    "dosage.dose": 2
  }
}
AlexU75 commented 1 year ago

Data type refers to the main value (this could be boolean for MedicationAdministration, for example). The values in the map are also of type 'Value' and can have different data types.

ChristophB commented 1 year ago

My bad, that's true!

{
  "dataType": "boolean",
  "fields": {
    "dosage.dose": {
      "dataType": "number",
      "value": 2
    }
  }
}
AlexU75 commented 1 year ago

In Java the map has type <String, Value>, right?