-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added ehr access to the valdiation flow tests
- Loading branch information
Showing
6 changed files
with
116 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/main/groovy/com/cabolabs/openehr/rm_1_0_2/ehr/EhrAccess.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.cabolabs.openehr.rm_1_0_2.ehr | ||
|
||
import com.cabolabs.openehr.rm_1_0_2.common.archetyped.Pathable | ||
import com.cabolabs.openehr.rm_1_0_2.common.archetyped.Locatable | ||
import com.cabolabs.openehr.rm_1_0_2.security.AccessControlSettings | ||
|
||
/** | ||
* @author pablo.pazos@cabolabs.com | ||
* | ||
*/ | ||
class EhrAccess extends Locatable { | ||
|
||
AccessControlSettings settings | ||
|
||
@Override | ||
void fillPathable(Pathable parent, String parentAttribute) | ||
{ | ||
this.path = ((parent.path != '/') ? '/' : '') + parentAttribute.replaceAll(/\[\d+\]/, '') | ||
this.dataPath = ((parent.dataPath != '/') ? '/' : '') + parentAttribute | ||
this.parent = parent | ||
|
||
//this.other_details.fillPathable(this, "other_details") | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/groovy/com/cabolabs/openehr/rm_1_0_2/security/AccessControlSettings.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.cabolabs.openehr.rm_1_0_2.security | ||
|
||
/** | ||
* @author pablo.pazos@cabolabs.com | ||
* | ||
*/ | ||
abstract class AccessControlSettings { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters