コード例 #1
0
 @Test
 public void testNonInterdisciplinary() {
   Document a =
       (Document)
           importer.convert(
               MockVistaDataChunks.createFromJson(
                   getDocumentResourceAsStream("document.json"), mockPatient, "document"));
   assertThat(a.getIsInterdisciplinary(), is(equalTo("false")));
 }
コード例 #2
0
 @Test
 public void testInterdisciplinaryChild() {
   Document a =
       (Document)
           importer.convert(
               MockVistaDataChunks.createFromJson(
                   getDocumentResourceAsStream("interdisc_doc_child.json"),
                   mockPatient,
                   "document"));
   assertThat(a.getInterdisciplinaryType(), is(equalTo("child")));
   assertThat(a.getIsInterdisciplinary(), is(equalTo("true")));
 }
コード例 #3
0
 public String getDocDefUid() {
   try {
     return Document.getDocDefUid(getResource());
   } catch (MissingAttributeException e) {
     return null;
   }
 }
コード例 #4
0
 public String getStatusName() {
   try {
     return Document.getStatusName(getResource());
   } catch (MissingAttributeException e) {
     return null;
   }
 }
コード例 #5
0
ファイル: AsuBasePolicySet.java プロジェクト: montge/eHMP
 @Override
 public AuthorizationDecision evaluate(
     DecisionRequest<HmpUserDetails, DocumentAction, Object> request) {
   try {
     String status = Document.getStatusName(request.getResource());
     PolicySet policySet = getPolicySet(request.getAction(), status);
     AuthorizationDecision decision = policySet.evaluate(request);
     return decision;
   } catch (MissingAttributeException e) {
     return AuthorizationDecision.valueOf(this, e);
   }
 }