use of uk.nhs.adaptors.scr.models.AcsPermission in project summary-care-record-api by NHSDigital.
the class AcsService method getPermission.
private static AcsPermission getPermission(ParametersParameterComponent parameter) {
Coding coding = (Coding) parameter.getPart().stream().filter(p -> PERMISSION_CODE_PART_NAME.equals(p.getName())).filter(p -> PERMISSION_CODE_SYSTEM.equals(((Coding) p.getValue()).getSystem())).findFirst().get().getValue();
String permissionValue = coding.getCode();
return AcsPermission.fromValue(permissionValue);
}
Aggregations