ch.hnet.dicom.worklist
Class MWLScu

java.lang.Object
  extended by IdentifierHandler
      extended by ch.hnet.dicom.worklist.MWLScu

public final class MWLScu
extends IdentifierHandler

                Hnet Modality Worklist SCU, based on pixelmed toolkit

                Intended Usage:

                .
                .
                .
                // construct scu
                MWLScu = mwlscu new MWLScu(host, port, calledAET, callinAET, false);
                // set query parameters
                mwlscu.setPatientName("Vivaldi*");
                mwlscu.setModality("CT");
                mwlscu.setProcedureStepDate("20091114-20091115");
                int n = mwlscu.cFind();
                if(n > 0){
                        WorkListEntry[] wList = mwlcsu.getResultSet();
                        for(int i = 0; i < n; i++){

                                // get single fields of the returned AttributeList
                                String AccessionNo = wList[i].getAccessionNumber();
                                String Modality = wList[i].getModality();
                                .
                                .
                                .
                        }
                }
                else{
                        // nothing found
                }
                .
                .
                .

                Comments:       Search Criteria are cleaned when cFind() returns
                                Any Critaria can be combined for a search by means
                                of the setXX() methods.

                                This is experimental stuff (yet) :-)

                11/2009/mkl  
        


Field Summary
static java.lang.String ModalityWorklistQueryRetrieveInformationModelFind
           
 
Constructor Summary
MWLScu(java.lang.String host, int port, java.lang.String CalledAET, java.lang.String CallingAET, boolean debug)
           
 
Method Summary
 int cFind()
           Perform the query against the constructor-configured modality worklist server.
 void doSomethingWithIdentifier(AttributeList wl)
           Internal callback function, must be public.
 WorkListEntry[] getResult()
           Return result of the query as an WorkListEntry Array.
 void setAccessionNumber(java.lang.String AccessionNumber)
           Suche nach Verwaltungskriterien: AccesionNumber
 void setAdmissionID(java.lang.String AdmissionID)
           Suche nach Verwaltungskriterien: AdmissionID
 void setModality(java.lang.String Modality)
           Suche nach Prozedurkriterien: Modalitaet Offizielle Dicom Short Strings wie MR, CT, CR, ...
 void setPatientBirthDate(java.lang.String BirthDate)
           Suche nach Patientenkriterien: Geburtstag Datum oder RangeQueries: 20031131-20041218 von bis 20031131- ab -20041231 vor Format: YYYYMMDD
 void setPatientID(java.lang.String PatientID)
           Suche nach Patientenkriterien: PatientenID
 void setPatientName(java.lang.String PatientName)
           Suche nach Patientenkriterien: Patientenname Wildcards: * and ?
 void setPatientSex(java.lang.String PatientSex)
           Suche nach Patientenkriterien: Patienten Geschlecht
 void setPerformingPhysicianName(java.lang.String Performing)
           Suche nach Aerzten: Ausfuehrender Arzt Wildcards: * and ?
 void setProcedureStepDate(java.lang.String sd)
           Suche nach Prozedurkriterien: Prozedur Start Datum Datum oder RangeQueries: 20031131-20041218 von bis 20031131- ab -20041231 vor Format: YYYYMMDD
 void setProcedureStepTime(java.lang.String st)
           Suche nach Prozedurkriterien: Protedur Start Zeit Zeit oder RangeQueries: 073000-120000 von bis 120000- nach -150000 vor Format: HHMMSS
 void setReferringPhysicianName(java.lang.String Referring)
           Suche nach Aerzten: Ueberweisender Arzt Wildcards: * and ?
 void setRequestingPhysician(java.lang.String Requesting)
           Suche nach Aerzten: Verodnender Arzt Wildcards: * and ?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ModalityWorklistQueryRetrieveInformationModelFind

public static final java.lang.String ModalityWorklistQueryRetrieveInformationModelFind
See Also:
Constant Field Values
Constructor Detail

MWLScu

public MWLScu(java.lang.String host,
              int port,
              java.lang.String CalledAET,
              java.lang.String CallingAET,
              boolean debug)
       throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

cFind

public int cFind()
          throws java.lang.Exception
                Perform the query against the constructor-configured modality worklist server.
                Returns number of result sets found.
                

Throws:
java.lang.Exception

setPatientName

public void setPatientName(java.lang.String PatientName)
                    throws java.lang.Exception
                Suche nach Patientenkriterien: Patientenname
                Wildcards:                     * and ?
                

Throws:
java.lang.Exception

setPatientID

public void setPatientID(java.lang.String PatientID)
                  throws java.lang.Exception
                Suche nach Patientenkriterien:  PatientenID
                

Throws:
java.lang.Exception

setPatientSex

public void setPatientSex(java.lang.String PatientSex)
                   throws java.lang.Exception
                Suche nach Patientenkriterien:  Patienten Geschlecht
                

Throws:
java.lang.Exception

setPatientBirthDate

public void setPatientBirthDate(java.lang.String BirthDate)
                         throws java.lang.Exception
                Suche nach Patientenkriterien:  Geburtstag
                Datum oder
                RangeQueries: 20031131-20041218    von bis
                              20031131-            ab
                              -20041231            vor
                Format:       YYYYMMDD
                

Throws:
java.lang.Exception

setModality

public void setModality(java.lang.String Modality)
                 throws java.lang.Exception
                Suche nach Prozedurkriterien: Modalitaet
                Offizielle Dicom Short Strings wie MR, CT, CR, ...
                

Throws:
java.lang.Exception

setProcedureStepDate

public void setProcedureStepDate(java.lang.String sd)
                          throws java.lang.Exception
                Suche nach Prozedurkriterien: Prozedur Start Datum
                Datum oder
                RangeQueries: 20031131-20041218    von bis
                              20031131-            ab
                              -20041231            vor
                Format:       YYYYMMDD
                

Throws:
java.lang.Exception

setProcedureStepTime

public void setProcedureStepTime(java.lang.String st)
                          throws java.lang.Exception
                Suche nach Prozedurkriterien: Protedur Start Zeit
                Zeit oder
                RangeQueries: 073000-120000    von bis
                              120000-          nach
                              -150000          vor
                Format:       HHMMSS
                

Throws:
java.lang.Exception

setReferringPhysicianName

public void setReferringPhysicianName(java.lang.String Referring)
                               throws java.lang.Exception
                Suche nach Aerzten: Ueberweisender Arzt
                Wildcards:          * and ?
                

Throws:
java.lang.Exception

setRequestingPhysician

public void setRequestingPhysician(java.lang.String Requesting)
                            throws java.lang.Exception
                Suche nach Aerzten: Verodnender Arzt
                Wildcards:          * and ?
                

Throws:
java.lang.Exception

setPerformingPhysicianName

public void setPerformingPhysicianName(java.lang.String Performing)
                                throws java.lang.Exception
                Suche nach Aerzten: Ausfuehrender Arzt
                Wildcards:          * and ?
                

Throws:
java.lang.Exception

setAccessionNumber

public void setAccessionNumber(java.lang.String AccessionNumber)
                        throws java.lang.Exception
                Suche nach Verwaltungskriterien: AccesionNumber
                

Throws:
java.lang.Exception

setAdmissionID

public void setAdmissionID(java.lang.String AdmissionID)
                    throws java.lang.Exception
                Suche nach Verwaltungskriterien: AdmissionID
                

Throws:
java.lang.Exception

getResult

public WorkListEntry[] getResult()
                Return result of the query as an WorkListEntry Array.
                


doSomethingWithIdentifier

public void doSomethingWithIdentifier(AttributeList wl)
                               throws DicomException
                Internal callback function, must be public.
                Do not call this one, *beware*
                

Throws:
DicomException