Modifier and Type | Field and Description |
---|---|
private ArrayList<String> |
cloneUIDs |
private String |
deleteParams |
private String |
instanceToDelete |
(package private) static Logger |
LOG |
private ArrayList<String> |
mergeUIDs |
private ArrayList<String> |
moveUIDs |
private QCOperation |
operation |
private static org.apache.commons.cli.Options |
opts |
private IDWithIssuer |
pid |
private Code |
qcRejectionCode |
private static ResourceBundle |
rb |
private ArrayList<String> |
rrUIDs |
private String |
seriesToDelete |
private Attributes |
sourcePatientAttributes |
private String |
studyToDelete |
private Attributes |
targetPatientAttributes |
private Attributes |
targetSeriesAttrs |
private Attributes |
targetStudyAttrs |
private String |
targetStudyUID |
private Attributes |
updateAttrs |
private QCUpdateScope |
updateScope |
private String |
url |
Constructor and Description |
---|
QC() |
QC(String url,
Code qcRejectionCode,
QCOperation operation) |
Modifier and Type | Method and Description |
---|---|
private static String |
adjustDeleteURL(QC qc) |
private static String |
adjustPatientURL(QC qc) |
private static boolean |
checkDelete(QC qc) |
private static String |
emptyIfNull(String obj) |
private static String |
encodeRejectionCode(Code rejCode) |
private static Attributes |
getAttributes(org.apache.commons.cli.CommandLine cl,
String optionName) |
ArrayList<String> |
getCloneUIDs() |
String |
getDeleteParams() |
String |
getInstanceToDelete() |
ArrayList<String> |
getMergeUIDs() |
ArrayList<String> |
getMoveUIDs() |
QCOperation |
getOperation() |
IDWithIssuer |
getPid() |
Code |
getQcRejectionCode() |
ArrayList<String> |
getRrUIDs() |
String |
getSeriesToDelete() |
Attributes |
getSourcePatientAttributes() |
String |
getStudyToDelete() |
Attributes |
getTargetPatientAttributes() |
Attributes |
getTargetSeriesAttrs() |
Attributes |
getTargetStudyAttrs() |
String |
getTargetStudyUID() |
Attributes |
getUpdateAttrs() |
QCUpdateScope |
getUpdateScope() |
String |
getUrl() |
private static QC |
initArgs(org.apache.commons.cli.CommandLine cl) |
private static void |
initializeOptions(org.apache.commons.cli.CommandLine cl,
QC qc) |
private static javax.json.JsonArray |
initPatientObject(QC qc) |
private static javax.json.JsonObject |
initQCObject(QC qc) |
static void |
main(String[] args) |
protected static void |
mergeUIDs(QC qc) |
private static org.apache.commons.cli.CommandLine |
parseComandLine(String[] args) |
static QCResult |
performOperation(String opDescription,
QC qc) |
private static void |
printResult(QCResult result) |
private static QCResult |
sendDeleteRequest(String desc,
QC qc) |
private static QCResult |
sendRequest(String desc,
QC qc,
Object qcMessage) |
void |
setCloneUIDs(ArrayList<String> cloneUIDs) |
void |
setDeleteParams(String deleteParams) |
void |
setInstanceToDelete(String instanceToDelete) |
void |
setMergeUIDs(ArrayList<String> mergeUIDs) |
void |
setMoveUIDs(ArrayList<String> moveUIDs) |
void |
setOperation(QCOperation operation) |
void |
setPid(IDWithIssuer pid) |
void |
setQcRejectionCode(Code qcRejectionCode) |
void |
setRrUIDs(ArrayList<String> rrUIDs) |
void |
setSeriesToDelete(String seriesToDelete) |
void |
setSourcePatientAttributes(Attributes sourcePatientAttributes) |
void |
setStudyToDelete(String studyToDelete) |
void |
setTargetPatientAttributes(Attributes targetPatientAttributes) |
void |
setTargetSeriesAttrs(Attributes targetSeriesAttrs) |
void |
setTargetStudyAttrs(Attributes targetStudyAttrs) |
void |
setTargetStudyUID(String targetStudyUID) |
void |
setUpdateAttrs(Attributes updateAttrs) |
void |
setUpdateScope(QCUpdateScope updateScope) |
void |
setUrl(String url) |
private static javax.json.JsonArrayBuilder |
toArrayBuilder(ArrayList<String> moveUIDs) |
private static javax.json.JsonObject |
toAttributesObject(Attributes targetSeriesAttrs) |
private static Code |
toCode(String codeComponents) |
private static javax.json.JsonObject |
toCodeObject(Code qcRejectionCode) |
static IDWithIssuer |
toIDWithIssuer(String optionValue) |
private static javax.json.JsonObject |
toIDWithIssuerObject(IDWithIssuer pid) |
private static javax.json.JsonObject |
toIssuerObject(Issuer issuer) |
private static ArrayList<String> |
toUIDS(String optionValue) |
private static void |
writeMessage(HttpURLConnection connection,
javax.json.JsonStructure qcMessage) |
private static ResourceBundle rb
private static org.apache.commons.cli.Options opts
private Code qcRejectionCode
private QCOperation operation
private String targetStudyUID
private String deleteParams
private String studyToDelete
private String seriesToDelete
private String instanceToDelete
private QCUpdateScope updateScope
private Attributes targetStudyAttrs
private Attributes targetSeriesAttrs
private Attributes targetPatientAttributes
private Attributes sourcePatientAttributes
private Attributes updateAttrs
private IDWithIssuer pid
public QC()
public QC(String url, Code qcRejectionCode, QCOperation operation)
private static void printResult(QCResult result)
public static QCResult performOperation(String opDescription, QC qc) throws IllegalArgumentException
IllegalArgumentException
private static boolean checkDelete(QC qc)
private static String encodeRejectionCode(Code rejCode)
private static QCResult sendDeleteRequest(String desc, QC qc)
private static String adjustPatientURL(QC qc)
private static String adjustDeleteURL(QC qc)
private static QCResult sendRequest(String desc, QC qc, Object qcMessage)
private static void writeMessage(HttpURLConnection connection, javax.json.JsonStructure qcMessage) throws Exception
Exception
private static javax.json.JsonObject initQCObject(QC qc)
private static javax.json.JsonArray initPatientObject(QC qc)
private static javax.json.JsonObject toIDWithIssuerObject(IDWithIssuer pid)
private static javax.json.JsonObject toIssuerObject(Issuer issuer)
private static javax.json.JsonObject toAttributesObject(Attributes targetSeriesAttrs)
private static javax.json.JsonObject toCodeObject(Code qcRejectionCode)
private static String emptyIfNull(String obj)
private static javax.json.JsonArrayBuilder toArrayBuilder(ArrayList<String> moveUIDs)
public static IDWithIssuer toIDWithIssuer(String optionValue) throws org.apache.commons.cli.MissingArgumentException
org.apache.commons.cli.MissingArgumentException
private static Code toCode(String codeComponents) throws org.apache.commons.cli.MissingArgumentException
org.apache.commons.cli.MissingArgumentException
private static org.apache.commons.cli.CommandLine parseComandLine(String[] args) throws org.apache.commons.cli.ParseException
org.apache.commons.cli.ParseException
private static QC initArgs(org.apache.commons.cli.CommandLine cl) throws org.apache.commons.cli.MissingArgumentException, IndexOutOfBoundsException
org.apache.commons.cli.MissingArgumentException
IndexOutOfBoundsException
private static void initializeOptions(org.apache.commons.cli.CommandLine cl, QC qc) throws org.apache.commons.cli.MissingArgumentException
org.apache.commons.cli.MissingArgumentException
private static Attributes getAttributes(org.apache.commons.cli.CommandLine cl, String optionName)
public Code getQcRejectionCode()
public QCOperation getOperation()
public String getTargetStudyUID()
public Attributes getTargetStudyAttrs()
public Attributes getTargetSeriesAttrs()
public Attributes getUpdateAttrs()
public IDWithIssuer getPid()
public ArrayList<String> getMoveUIDs()
public ArrayList<String> getCloneUIDs()
public ArrayList<String> getMergeUIDs()
public void setQcRejectionCode(Code qcRejectionCode)
public void setOperation(QCOperation operation)
public void setTargetStudyUID(String targetStudyUID)
public void setTargetStudyAttrs(Attributes targetStudyAttrs)
public void setTargetSeriesAttrs(Attributes targetSeriesAttrs)
public void setUpdateAttrs(Attributes updateAttrs)
public void setPid(IDWithIssuer pid)
public void setMoveUIDs(ArrayList<String> moveUIDs)
public void setCloneUIDs(ArrayList<String> cloneUIDs)
public void setMergeUIDs(ArrayList<String> mergeUIDs)
public QCUpdateScope getUpdateScope()
public void setUpdateScope(QCUpdateScope updateScope)
public String getDeleteParams()
public void setDeleteParams(String deleteParams)
public String getStudyToDelete()
public void setStudyToDelete(String studyToDelete)
public String getSeriesToDelete()
public void setSeriesToDelete(String seriesToDelete)
public String getInstanceToDelete()
public void setInstanceToDelete(String instanceToDelete)
public Attributes getTargetPatientAttributes()
public void setTargetPatientAttributes(Attributes targetPatientAttributes)
public Attributes getSourcePatientAttributes()
public void setSourcePatientAttributes(Attributes sourcePatientAttributes)
Copyright © 2017 dcm4che.org. All rights reserved.