catissuecore/rest/ng/specimen/print-rules
...
Parameter | Definition |
---|---|
name | Name of the Print Rule. Should be unique in system |
specimenClass[Optional] | Class of the specimen. By default it will be 'Any' |
specimenType[Optional] | Type of the specimen . By default it will be 'Any' |
labelType | This could be Cap+Slide or Side. This parameter and the specimen type define the information that needs to go in the label. This will help user to configure based on label physical dimensions. |
dataOnLabel | Information that needs to be included in the label based on the specimen class/type and label type |
printerName | Name of the printer where the request has to be forwarded to. |
workstationIP[Optional] | IP address of the machine from where the print request will come and this decides to which printer the request has to be forwarded to. By default it will be 'Any'. It can be specified in wild card format like grouping e.g all IPs starting with 128 will have same rule all IPs starting with 128.3. will have same rule |
loginName | login name of User. |
domainName | domain name of User. |
cpShortTitle | Collection protocol short title |
http[s]:<host>:<port>/catissuecore/rest/ng/specimen/print-rules
...
URL | http://<host>:<port>/ catissuecore/rest/ng/specimen/print-rules |
Method | POST |
Request | application/json |
json | { |
Response | { id: 3 name: "My PrintRule" specimenClass: "Fluid" specimenType: "Any" labelType: "Cap+Slide" workstationIP: "127.0.0.1" dataOnLabel: [ 2]0: "Specimen type" 1: "Specimen Label" - printerName: "TB2" cpShortTitle: "SCS_CP" } |
Error Cases :
code | Applies to | Status Message |
---|---|---|
200 | All resources | Print rule has been created successfully |
400 | All requests | Invalid parameters, e.g duplicate Print rule name, blank Print rule name etc |
401 | All requests | Authorization failed, User doesn’t have Authority |
500 | All requests | Internal server error, Encountered server error while performing operations |