MiuMergeDataFromItemsToSessionPropertyValve

Valve to be used in combination with GetMiuForPersonValve. This valve creates a json object from item properties and place the result in a session property. Typically used in "select current commission" use cases when the json object is echoed to the frontend which draws the selection page based on these values.

The valve also adds a list of commission hsaIDs (miu:s) in a session property for later validation.

This valve is NOT shipped with the product. Follow the procedure below Requirements to add the valve.

Properties

Name Description Default value Mandatory Supports property expansion.
sessionProperty Target session property name. Yes No
sessionPropertyMiuList Target session property name. miu_hsa_list No No

Example Configuration

{
  "name": "MiuMergeDataFromItemsToSessionPropertyValve",
  "config": {
    "sessionProperty": "miuJson"
  }
}

Requirements

  • PhenixID Authentication Services 4.1 or above
  • This patch applied.
  • At least one item must exist in the flow, containing commission properties.
  • The session must be loaded in the flow.

 

Result

The json object result is a json array where each element represents one commission (item) with these properties:

  • MiuName
  • CareGiverName
  • MiuPurpose
  • HsaIdentity
  • CareUnitName

Items missing the MiuName property will not be processed when creating the json object.