GetMiuForPersonValve
Valve for performing a person lookup against the HSAWS (v2) web service method GetMiuForPerson, to get the commissions (Medarbetaruppdrag) for the user. It is also possible to use the valve to get a specific commission (based on the hsaID of the commissions).
This valve works on a request parameter, an item property or a session property containing the user's HSA identity OR personal number. After execution, an item for each commission is created in the flow. Each item representing a commission contains item properties reflecting the commission property.
The valve can also be used used to fetch a specific commission (using the user hsa ID or personal number in combination with the commission hsa ID).
This valve can perform lookups against the national Inera HSA WS or be used against a local (regional) HSA ws.
This valve is NOT shipped with the product. Follow the procedure below Requirements to add the valve.
Properties
Example Configuration
Get all commissions for user
{
"name": "GetMiuForPersonValve",
"config": {
"keystore_id": "xxxx-yyyy-zzzz-wwww",
"endpointURL" : "https://min.region.se/svr-hsaws2/hsaws",
"hsaIdentity" : "{{session.user_id}}",
"logicalAddress" : "SE165565594230-1000",
"searchBase" : "c=SE"
}
}
Get specific commission for user
{
"name": "GetMiuForPersonValve",
"config": {
"keystore_id": "xxxx-yyyy-zzzz-wwww",
"endpointURL" : "https://min.region.se/svr-hsaws2/hsaws",
"hsaIdentity" : "{{session.user_id}}",
"selected_hsa_id" : "{{session.hsaIdMiu}}",
"logicalAddress" : "SE165565594230-1000",
"searchBase" : "c=SE"
}
}
Requirements
- This information must be obtained from the HSAWS admin:
- Client certificate in p12 format to contact the web service, with permissions to call the GetMiuForPerson method.
- HSAWS endpoint
- PhenixID Authentication Services 4.1 or above
- This patch applied.
- Add trust to HSAWS endpoint SSL certificates (if non-global CAs are used) by adding the CA certificate(s) to cacerts.
Item enrichment
After a successful lookup, these item properties will be populated with values in the response. (One item for each commission will be created) :
Item property name | GetMiuForPersonResponse->MiuInformation parameter name |
---|---|
id (item id) | hsaIdentity |
MiuPurpose |
miuPurpose |
careGiver | careGiver |
CareGiverName |
careGiverName |
CareGiverOrgNo |
careGiverOrgNo |
CareUnitHsaIdentity |
careUnitHsaIdentity |
CareUnitName |
careUnitName |
GivenName |
givenName |
HsaIdentity |
middleName |
HsaIdentityPerson |
mobiles |
MiddleAndSurName |
middleAndSurName |
MiuName |
miuName |
PersonalPrescriptionCode |
personalPrescriptionCode |
HsaSystemRoles |
hsaSystemRoles |
HsaTitles |
hsaTitles |
MiuRights |
miuRights |
PaTitleCodes |
paTitleCodes |