{
  "resourceType": "OperationDefinition",
  "url": "https://medico-emr.net/medico/r4/od/ti/ValueSet_UserPermissions_getpermissions",
  "name": "ValueSet_UserPermissions_GetPermissions",
  "status": "draft",
  "kind": "operation",
  "description": "operation on https://medico-emr.net/medico/r4/vs/ti/ValueSet_UserPermissions_1 to retrieve the permissions for the given user",
  "affectsState": false,
  "code": "getpermissions",
  "resource": [
    "ValueSet"
  ],
  "system": false,
  "type": true,
  "instance": false,
  "outputProfile": "https://medico-emr.net/medico/r4/vs/ti/ValueSet_UserPermissions_1",
  "parameter": [
    {
      "name": "app",
      "use": "in",
      "min": 0,
      "max": "1",
      "documentation": "the appid for which the entrypoints are configured for, if this parameter is missing all available entrypoints for the given user are returned",
      "type": "string"
    },
    {
      "name": "skipdepartmentsandwards",
      "use": "in",
      "min": 0,
      "max": "1",
      "documentation": "indicates if permission regarding the combinations of department and wards should NOT be included in the expansion of the resulting valueset, default is false if this parameter is not provided",
      "type": "boolean"
    },
    {
      "name": "skipentrypoints",
      "use": "in",
      "min": 0,
      "max": "1",
      "documentation": "indicates if permission regarding the entrypoints should NOT be included in the expansion of the resulting valueset, default is false if this parameter is not provided",
      "type": "boolean"
    },
    {
      "name": "permissions",
      "use": "out",
      "min": 1,
      "max": "1",
      "documentation": "the valueset containing the permissions of the given user",
      "type": "ValueSet",
      "targetProfile": [
        "https://medico-emr.net/medico/r4/vs/ti/ValueSet_UserPermissions_1"
      ]
    }
  ]
}