Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2011 the original author or authors.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 package org.openehealth.ipf.commons.ihe.hl7v2.definitions.pdq.v25.message;
 
 import java.util.Map;
 
 

Represents a QBP_Q21 message structure (see chapter 3.3.56). This structure contains the following elements:

0: MSH (Message Header)
1: SFT (Software Segment) optional repeating
2: QPD (Query Parameter Definition)
3: RCP (Response Control Parameter)
4: DSC (Continuation Pointer) optional
 
 @SuppressWarnings("serial")
 public class QBP_Q21 extends AbstractMessage {

    
Creates a new QBP_Q21 Group with custom ModelClassFactory.
 
     public QBP_Q21(ModelClassFactory factory) {
         super(factory);
     }

    
Creates a new QBP_Q21 Group with DefaultModelClassFactory.
 
     public QBP_Q21() {
         super();
     }
 
     @Override
     protected Map<Class<? extends Structure>, Cardinalitystructures(
             Map<Class<? extends Structure>, Cardinalitys) {
         s.put(MSH.class.);
         s.put(SFT.class.);
         s.put(QPD.class.);
         s.put(RCP.class.);
         s.put(DSC.class.);
         return s;
     }
 
     public String getVersion() {
         return "2.5";
     }

    
Returns MSH (Message Header) - creates it if necessary
 
     public MSH getMSH() {
         return getTyped("MSH"MSH.class);
     }

    
Returns first repetition of SFT (Software Segment) - creates it if necessary
 
     public SFT getSFT() {
         return getTyped("SFT"SFT.class);
     }

    
Returns all repetitions of SFT
 
     public java.util.List<SFTgetSFTAll() throws HL7Exception {
         return getAllAsList("SFT"SFT.class);
     }

    
Returns a specific repetition of SFT (Software Segment) - creates it if necessary throws HL7Exception if the repetition requested is more than one greater than the number of existing repetitions.
    public SFT getSFT(int repthrows HL7Exception {
        return getTyped("SFT"repSFT.class);
    }

    
Returns the number of existing repetitions of SFT
    public int getSFTReps() {
        return getReps("SFT");
    }

    
Returns QPD (Query Parameter Definition) - creates it if necessary
    public QPD getQPD() {
        return getTyped("QPD"QPD.class);
    }

    
Returns RCP (Response Control Parameter) - creates it if necessary
    public RCP getRCP() {
        return getTyped("RCP"RCP.class);
    }

    
Returns DSC (Continuation Pointer) - creates it if necessary
    public DSC getDSC() {
        return getTyped("DSC"DSC.class);
    }
New to GrepCode? Check out our FAQ X