Optimizing non-sequential parsing of information extracted from machine-readable codes
Object information is received via an application programming interface (API) from a requesting computing device. The object information is (a) extracted from a machine-readable code associated with the object, or (b) derived from information extracted from the machine-readable code associated with the object. A non-sequential parsing process is performed to the object information to identify one or more values for one or more fields of a plurality of unique fields. Performing the non-sequential parsing process includes applying a plurality of regular expressions to the object information to identify the one or more values. Each of the plurality of regular expressions is configured to identify values for at least one field of the plurality of unique fields. For each of the one or more values, a data object is that comprises the value and information indicative of the field for the value.
1 . A computing system, comprising:
one or more processors; and
one or more non-transitory computer-readable media that store instructions that, when executed by the one or more processors, cause the one or more processors to perform operations, the operations comprising:
receiving, via an application programming interface (API), object information from a requesting computing device, wherein the object information is:
(a) extracted from a machine-readable code associated with the object; or
(b) derived from information extracted from the machine-readable code associated with the object;
performing, via a non-sequential parsing module, a non-sequential parsing process to the object information to identify one or more data elements comprising one or more values and one or more field identifiers for one or more fields of a plurality of unique fields, wherein the one or more field identifiers comprise one or more encoded values that identify the one or more fields, and wherein performing the non-sequential parsing process comprises:
applying, via the non-sequential parsing module, a plurality of regular expressions to the object information to identify the one or more values, wherein each of the plurality of regular expressions is configured to identify values for at least one field of the plurality of unique fields, wherein applying the plurality of regular expressions to the object information comprises:
applying a first regular expression to the encoded sequence of values to identify a first value of a first field from a first segment of the encoded sequence of values, wherein the first regular expression is configured to identify values for the first field; and
applying a second regular expression to the encoded sequence of values to identify a second value of a second field from a second segment of the encoded sequence of values, wherein the second regular expression is configured to identify values for the second field, and wherein the second segment occurs prior to the first segment within the encoded sequence of values; and
in response to identifying the one or more data elements, storing, for each of the one or more values, a data object that comprises the value and information indicative of the field for the value.
2 . The computing system of claim 1 , wherein the operations further comprise transmitting, via the API, each data object to the requesting computing device.
3 . The computing system of claim 1 , wherein the machine-readable code comprises a barcode.
4 . The computing system of claim 3 , wherein the barcode comprises a two-dimensional barcode.
5 . The computing system of claim 3 , wherein the barcode comprises a Health Industry Bar Code (HIBC).
6 . The computing system of claim 1 , wherein the machine-readable code comprises a QR code.
7 . The computing system of claim 1 , wherein each of the plurality of regular expressions is configured to identify a field identifier and a corresponding value.
8 . The computing system of claim 6 , wherein each of the one or more data elements comprises a GS1-format element string comprising a field identifier and a corresponding value that immediately follows the field identifier in the element string.
9 . The computing system of claim 1 , wherein receiving the object information from the requesting computing device comprises receiving, via the API, an encoded sequence of values that is extracted from the machine-readable code associated with the object.
10 . The computing system of claim 1 , wherein the object comprises a medical resource or medical device, and wherein the computing system and/or the requesting computing device is associated with a medical cataloguing system.
11 . The computing system of claim 1 , wherein the one or more fields comprise at least one of:
a lot number;
a serial number;
a creation date; or
a best-by date.
12 . The computing system of claim 1 , wherein receiving the object information from the requesting computing device comprises:
receiving, from the requesting computing device associated via the API, a sequence of binary values extracted from the machine-readable code associated with the object; and
deriving the object information from the sequence of binary values.
13 . A computer-implemented method, comprising:
receiving, by a computing system comprising one or more processor devices via an application programming interface (API), object information from a requesting computing device, wherein the object information is:
(a) extracted from a machine-readable code associated with the object; or
(b) derived from information extracted from the machine-readable code associated with the object;
performing, by the computing system, a non-sequential parsing process to the object information to identify one or more data elements comprising one or more values and one or more field identifiers for one or more fields of a plurality of unique fields, wherein the one or more field identifiers comprise one or more encoded values that identify the one or more fields, and wherein performing the non-sequential parsing process comprises:
applying, by the computing system, a plurality of regular expressions to the object information to identify the one or more values, wherein each of the plurality of regular expressions is configured to identify values for at least one field of the plurality of unique fields, wherein applying the plurality of regular expressions to the object information comprises:
applying a first regular expression to the encoded sequence of values to identify a first value of a first field from a first segment of the encoded sequence of values, wherein the first regular expression is configured to identify values for the first field; and
applying a second regular expression to the encoded sequence of values to identify a second value of a second field from a second segment of the encoded sequence of values, wherein the second regular expression is configured to identify values for the second field, and wherein the second segment occurs prior to the first segment within the encoded sequence of values; and
storing, by the computing system for each of the one or more values, a data object that comprises the value and information indicative of the field for the value.
14 . The computer-implemented method of claim 13 , wherein the method further comprises transmitting, by the computing system via the API, each data object to the requesting computing device.
15 . The computer-implemented method of claim 13 , wherein each of the plurality of regular expressions is configured to identify a field identifier and a corresponding value.
16 . The computer-implemented method of claim 15 , wherein each of the one or more data elements comprises a GS1-format element string comprising a field identifier and a corresponding value that immediately follows the field identifier in the element string.
17 . One or more non-transitory computer-readable media that store instructions that, when executed by one or more processors of a computing system, cause the one or more processors to perform operations, the operations comprising:
receiving, via an application programming interface (API), object information from a requesting computing device, wherein the object information is:
(a) extracted from a machine-readable code associated with the object; or
(b) derived from information extracted from the machine-readable code associated with the object;
performing a non-sequential parsing process to the object information to identify one or more data elements comprising one or more values and one or more field identifiers for one or more fields of a plurality of unique fields, wherein the one or more field identifiers comprise one or more encoded values that identify the one or more fields, and wherein performing the non-sequential parsing process comprises:
applying a plurality of regular expressions to the object information to identify the one or more values, wherein each of the plurality of regular expressions is configured to identify values for at least one field of the plurality of unique fields, wherein applying the plurality of regular expressions to the object information comprises:
applying a first regular expression to the encoded sequence of values to identify a first value of a first field from a first segment of the encoded sequence of values, wherein the first regular expression is configured to identify values for the first field; and
applying a second regular expression to the encoded sequence of values to identify a second value of a second field from a second segment of the encoded sequence of values, wherein the second regular expression is configured to identify values for the second field, and wherein the second segment occurs prior to the first segment within the encoded sequence of values; and
storing, for each of the one or more values, a data object that comprises the value and information indicative of the field for the value.