SOP on Operation and Procedure of Pharmacode Reader

👤 Written by: Naresh Bhakar
GMP & Pharmaceutical Manufacturing Expert

✓ Reviewed by: Pankaj Sharma - Quality Control Specialist
Reviewed for QC, QA accuracy, laboratory practices, analytical methods, and technical Documents

📅 Last Updated: November 15, 2026

About this SOP: This SOP on operation and procedure of pharmacode reader covers a camera system on the packing line that reads the pharmacode on cartons and leaflets. The reader compares the decoded value with the Batch Packaging Record (BPR) value and rejects any wrong code, so that packaging mix-ups are prevented.

1.0 Objective

This SOP describes how to operate the Pharmacode reader on the packing line. A pharmacode reader is a camera-based inspection system that checks the correct carton and leaflet for a batch.

Operator in cleanroom gown watching barcoded cartons pass a camera reader, as in the SOP on operation and procedure of pharmacode reader
A gowned operator monitors cartons with printed barcodes as they pass under a camera-based code reader on the conveyor.

1.1 Working principle of pharmacode

Pharmacode (the Laetus one-track code) is a binary bar code made of narrow and wide bars. A code has 2 to 16 bars and encodes an integer from 3 to 131,070.

The value is worked out from the right, where the bar position n starts at 0. A narrow bar adds 2^n and a wide bar adds 2 × 2^n. For example, a code with a narrow bar at position 0, a wide bar at position 1 and a narrow bar at position 2 gives 1 + 4 + 4 = 9. A secure code has at least 3 bars, with both narrow and wide bars, because a code with all bars of the same width is considered insecure.

According to the Pharmacode description on Wikipedia, a code is read right to left. With an omnidirectional scanner it is also read left to right, which is why the camera checks both directions. The pharmacode value can also be worked out with the pharmacode value calculator.

1.2 Pharmacode compared with Data Matrix

Pharmacode identifies the packaging material. A Data Matrix code (DMC) carries the product code, lot, expiry and serial number. Some newer AI code readers can read both codes in one pass by using parameter banks, but this is a feature of one manufacturer.

2.0 Scope

This SOP applies to the operation of a pharmacode reader in the production area, including the packing line (for example, after an automatic filling and sealing machine).

3.0 Responsibility

3.1 The production officer or senior officer operates the reader and follows this SOP.

3.2 The Head of the Department ensures that this procedure is implemented and that staff are trained in it.

3.3 The Head of Quality Assurance (QA) or designee is responsible for compliance with this procedure.

4.0 Accountability

The Head of the Department and the Head of QA or designee are accountable for the correct implementation of this SOP.

READ ALSO

SOP on Operation and Calibration of the Antibiotic Zone Reader

The Antibiotic Zone Reader quickly and accurately helps figure out how strong antibiotics…

5.0 Procedure

The procedure runs from pre-start checks to start-up, image setup, decoding and matching, reject handling, data integrity, maintenance and troubleshooting.

5.1 Pre-start checks

5.1.1 The production officer shall take line clearance of the packing area from QA before starting the reader, and the result must be recorded in the BPR.

5.1.2 The operator shall check that the carton and leaflet issued match the BPR before they are loaded.

5.1.3 The operator shall clean the camera lens and check the lighting and focus of the camera.

5.2 Start-up

5.2.1 Ensure that the power supply is on.

5.2.2 Connect and switch on the camera.

5.2.3 On the main screen, enter the user ID and password, and then start the inspection.

5.2.4 If the images of the leaflet and carton were saved earlier, click “start inspection” to start the operation.

5.3 New product image setup

5.3.1 If no product image is saved, click “GO”.

5.3.2 Select the carton pharmacode in both directions (right to left and left to right) and the leaflet pharmacode in both directions (top to bottom and bottom to top), and then save the image.

5.3.3 Only an authorised user shall set up or change a product image.

5.4 Decoding and matching

5.4.1 Click “decode”. The camera reads the carton pharmacode left to right and right to left, and the leaflet pharmacode top to bottom and bottom to top, and then shows the decoded value.

5.4.2 Match the pharmacode value with the target value in the Batch Packaging Record (BPR). The target value must come from the BPR and not from a value typed in by the printer operator, so that the printer and the camera cannot confirm each other’s wrong entry.

5.5 Accept and reject

5.5.1 The reader accepts a carton or leaflet whose pharmacode matches the BPR and rejects any carton or leaflet with a wrong pharmacode.

5.6 Reject challenge (good practice)

5.6.1 At start-up and after any stoppage, the operator shall run a known wrong carton and a known wrong leaflet through the reader.

5.6.2 The operator must confirm that the reader rejects both and that the reject mechanism works, and the result shall be recorded in the BPR or the reader log. The frequency is the one set in the site procedure.

5.7 Handling of rejects and line stop

5.7.1 A unit that fails the read is rejected and must be removed from the line.

5.7.2 The line must be stopped when the target value looks implausible or when match results drop across several units, because this points to a setup or marking fault.

5.7.3 Rejected cartons and leaflets shall be segregated and reconciled in the BPR.

5.7.4 The line stop shall be reported to QA and handled as a deviation as per the Procedure for Handling of Deviations.

5.8 Data integrity and access control

5.8.1 Each user must have their own user ID and password, and only authorised users may set up or change a product image.

5.8.2 Changes to product images and settings must be recorded in an audit trail, and the system must be validated. Annex 11 (January 2011) and Part 11 expectations apply to the system that stores the records. A revision of Annex 11 was released as a consultation draft in July 2025, and it is still a draft.

5.9 Cleaning, maintenance and verification

5.9.1 The operator shall clean the camera lens as per the equipment manual.

5.9.2 Engineering shall carry out preventive maintenance and verification of the reader at the frequency given in the equipment manual or the site schedule.

5.10 Troubleshooting

The table lists the common faults of the reader, their likely causes and the action to take.

ProblemLikely causeAction
No read, bars not detectedDirty lens, poor lighting or focus, or wrong product imageClean the lens, correct the lighting and focus, and inform engineering if the fault continues
False reject of a correct cartonMisalignment of the camera or poor print qualityStop the line, inform the production officer and engineering, and report to QA
Wrong product image loadedWrong image selected at start-upStop the line, load the correct image through an authorised user, and report to QA
Camera misalignmentCamera moved or loosenedStop the line and call engineering to realign the camera
Poor print quality of barsPrinting fault on the carton or leafletSegregate the affected material and inform QA

Related SOP: SOP for Camera vision system and pinhole detector

6.0 Precautions

The precautions below protect the saved product images and the records of the reader.

6.1 A saved image must not be changed without an authorised user and a change record.

6.2 Trial runs must not be done without a record.

6.3 The records are the BPR entries, the challenge test result, the reject count and the printouts.

7.0 Abbreviations

The abbreviations used in this SOP are listed below with their full forms.

SOP: Standard Operating Procedure

BPR: Batch Packaging Record

QA: Quality Assurance

DMC: Data Matrix code

GMP: Good Manufacturing Practice

CFR: Code of Federal Regulations

8.0 Annexures

Annexure-I is the blank log format for recording the use of the pharmacode reader.

Annexure-I: Pharmacode Reader Log

DateProductBatch No.Image LoadedChallenge Test ResultReject CountDone ByChecked ByRemarks

9.0 Revision History

The table records every revision of this SOP.

Revision No.Effective DateReason for ChangeChanged ByApproved By
00DD/MM/YYYYNew SOP
TitleSOP No.Revision No.Effective DateReview DateSupersedesDepartmentPage
SOP on Operation and Procedure of Pharmacode ReaderPRD/XXX00DD/MM/YYYYDD/MM/YYYYNILProduction (Packaging)1 of X

References

  1. Pharmacode, Wikipedia
  2. 21 CFR 211.130 Packaging and labeling operations, Cornell LII (copy of CFR)
  3. EMA Draft Revisions to EU GMP: Annex 11, Annex 22 and AI, Rephine

Leave a Comment