305 (10)    BPS NCPDP FIELD DEFS (9002313.91)

Name Value
NCPDP FIELD NUMBER 305
NAME PATIENT GENDER CODE
FORMAT NUMERIC
ID C5
LENGTH 1
D0 LENGTH 1
D0 FORMAT NUMERIC
GET CODE
S BPS("X")=$G(BPS("Patient","Sex"))
S BPS("X")=$E(BPS("X"),1,1)
S BPS("X")=$S(BPS("X")="M":"1",BPS("X")="F":"2",1:"0")
REQUEST SEGMENT PATIENT
D0 FORMAT CODE
S BPS("X")=$$NFF^BPSECFM($G(BPS("X")),1)
SET CODE
S $P(^BPSC(BPS(9002313.02),300),U,5)=BPS("X")
FORMAT CODE
S BPS("X")=$$NFF^BPSECFM($G(BPS("X")),1)