mirror of
https://github.com/pcvolkmer/onkostar-plugin-dnpm.git
synced 2025-07-02 01:02:55 +00:00
fix: apply changes in API version 2.12.x
OS API version 2.12.1 or newer fixes the issue of not using patient ID when adding patient object to procedure. Since this version, a NPE will occur of not providing a patient ID when adding a patient object to a procedure.
This commit is contained in:
@ -92,6 +92,7 @@ class PersonPoolBasedPermissionEvaluatorTest {
|
||||
@Test
|
||||
void testShouldGrantPermissionByProcedureObject() {
|
||||
var patient = new Patient(onkostarApi);
|
||||
patient.setId(1);
|
||||
patient.setPersonPoolCode("Pool2");
|
||||
|
||||
var object = new Procedure(onkostarApi);
|
||||
@ -107,6 +108,7 @@ class PersonPoolBasedPermissionEvaluatorTest {
|
||||
void testShouldGrantPermissionByProcedureIdAndType() {
|
||||
doAnswer(invocationOnMock -> {
|
||||
var patient = new Patient(onkostarApi);
|
||||
patient.setId(1);
|
||||
patient.setPersonPoolCode("Pool2");
|
||||
|
||||
var object = new Procedure(onkostarApi);
|
||||
@ -124,6 +126,7 @@ class PersonPoolBasedPermissionEvaluatorTest {
|
||||
@Test
|
||||
void testShouldDenyPermissionByProcedureObject() {
|
||||
var patient = new Patient(onkostarApi);
|
||||
patient.setId(1);
|
||||
patient.setPersonPoolCode("Pool1");
|
||||
|
||||
var object = new Procedure(onkostarApi);
|
||||
@ -139,6 +142,7 @@ class PersonPoolBasedPermissionEvaluatorTest {
|
||||
void testShouldDenyPermissionByProcedureIdAndType() {
|
||||
doAnswer(invocationOnMock -> {
|
||||
var patient = new Patient(onkostarApi);
|
||||
patient.setId(1);
|
||||
patient.setPersonPoolCode("Pool1");
|
||||
|
||||
var object = new Procedure(onkostarApi);
|
||||
|
Reference in New Issue
Block a user