View Javadoc
1   /*
2    * Copyright 2011 the original author or authors.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *     
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.openehealth.ipf.platform.camel.ihe.hl7v2ws;
17  
18  import org.apache.camel.Processor;
19  import org.openehealth.ipf.gazelle.validation.profile.pcd.PcdTransactions;
20  import org.openehealth.ipf.platform.camel.hl7.HL7v2;
21  import org.openehealth.ipf.platform.camel.hl7.validation.ConformanceProfileValidators;
22  
23  /**
24   * @author Mitko Kolev
25   *
26   */
27  public class Hl7v2WsCamelValidators {
28  
29      public static Processor pcdValidator() {
30          return HL7v2.validatingProcessor();
31      }
32  
33      /**
34       * Returns a validating processor for PCD-01 request messages
35       * (Communicate Patient Care Device (PCD) data).
36       */
37      public static Processor pcd01RequestValidator() {
38          return ConformanceProfileValidators.validatingProcessor(PcdTransactions.PCD1);
39      }
40  
41      /**
42       * Returns a validating processor for PCD-01 response messages
43       * (Communicate Patient Care Device (PCD) data).
44       */
45      public static Processor pcd01ResponseValidator() {
46          return ConformanceProfileValidators.validatingProcessor(PcdTransactions.PCD1);
47      }
48  
49      /**
50       * Returns a validating processor for Continua WAN - conform request messages.
51       */
52      public static Processor continuaWanRequestValidator() {
53          return ConformanceProfileValidators.validatingProcessor(PcdTransactions.PCD1);
54      }
55  
56      /**
57       * Returns a validating processor for Continua WAN - conform response messages.
58       */
59      public static Processor continuaWanResponseValidator() {
60          return ConformanceProfileValidators.validatingProcessor(PcdTransactions.PCD1);
61      }
62      
63  }