# US 2022/0283893 A1 · System and Method for Modular Construction of Executable Programs Having Self-Contained Program Elements

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0283893 A1
- Document ID: US20220283893A1
- Status: Published application
- Kind: A1
- Application number: 17/583,942
- Filed: 2022-01-25
- Published: 2022-09-08
- Earliest claimed: 2021-03-03
- Assignees: Chewy, Inc.
- Applicants: Chewy, Inc.
- Inventors: Benjamin HUSSEY
- Web page: https://patentgrep.com/patent/US20220283893A1

## CPC

- G06F 11/0793: {Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40)}
- G06F 8/36: Software reuse
- G06F 9/00: Arrangements for program control, e.g. control units (program control for peripheral devices G06F13/10)
- G06F 11/1402: {Saving, restoring, recovering or retrying}
- G06F 11/1492: using run-time replication performed by the application software, e.g. N-modular type
- G06F 11/362: Debugging of software
- G16H 20/10: relating to drugs or medications, e.g. for ensuring correct administration to patients
- G06F 9/451: Execution arrangements for user interfaces
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G16H: HEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA

## Abstract

A method for performing a fault tolerant automated sequence of computer implemented tasks including, presenting for selection by a user a plurality of pre-programmed elements, each pre-programmed element being independently executable relative each other pre-programmed element, receiving from the user a selection of one or more of the pre-programmed elements and a sequence for performing each pre-programmed element to form an exemplary routine, creating an instance of the exemplary routine, the instance of the exemplary routine including an instance of each of the selected pre-programmed elements arranged for performance in accordance with the sequence and configured to perform tasks defined by the pre-programmed elements and the sequence, initiating implementation of the instance of the exemplary routine by initiating performance of the instances of the pre-programmed elements in accordance with the sequence, and executing each instance of the pre-programmed elements according to the sequence.

## Claims

### Claim 1

A method for performing a fault tolerant automated sequence of computer implemented tasks comprising:
presenting for selection by a user a plurality of pre-programmed elements, each pre-programmed element being independently executable relative each other pre-programmed element such that an output of any of the pre-programmed elements is not a direct input to any other of the pre-programmed elements;
receiving from the user a selection of one or more of the pre-programmed elements and a sequence for performing each pre-programmed elements in the selection to form an exemplary routine;
creating an instance of the exemplary routine in response to a request to implement the exemplary routine, the instance of the exemplary routine including an instance of each of the selected pre-programmed elements arranged for performance in accordance with the sequence and being configured to perform tasks defined by the pre-programmed elements and the sequence;
initiating implementation of the instance of the exemplary routine by initiating performance of the instances of the pre-programmed elements in accordance with the sequence; and
executing each instance of the pre-programmed elements according to the sequence.

### Claim at position 2

2-9. (canceled)

### Claim 10 (depends on 1)

The method of claim 1 further comprising:
detecting an error that prevents completion of at least one instance of the pre-programmed elements; and
terminating the implementation of the instance of the exemplary routine upon detection of the error without user intervention.

### Claim 11 (depends on 10)

The method of claim 10 further comprising:
after the detecting step and before the terminating step, attempting to re-implement at least one instance of the pre-programmed elements associated with the detected error.

### Claim 12 (depends on 10)

The method of claim 10 further comprising:
detecting a trigger event that triggers, without user intervention, a re-initiation of the performance of the instance of at least one of the pre-programmed elements and wherein an error state that prevents the completion of the at least one instance arises after a subsequent trigger event is detected following a pre-selected number of re-initiations of the performance of the at least one instance of the pre-programmed element.

### Claim 13 (depends on 10)

The method of claim 10 further comprising:
defining a retry threshold value for each of the pre-programmed elements; and
after the detecting step and before the terminating step, attempting to re-implement the at least one instance of the pre-programmed elements associated with the detected error in accordance with the retry threshold value.

### Claim 14 (depends on 1)

The method of claim 1 further comprising:
during implementation of the instance of the exemplary routine, detecting the absence of prescription authorization data needed to complete the implementation of the instance of the exemplary routine;
based on the absence of the prescription authorization, automatically transmitting an authorization form to an authorizing entity;
receiving an authorization facsimile of a completed form in response to the automatic transmitting; and
automatically populating a prescription authorization field based upon the received facsimile.

### Claim 15 (depends on 14)

The method of claim 14 further comprising:
receiving a datafile containing optical character recognition data associated with the authorization facsimile.

### Claim 16 (depends on 15)

The method of claim 15 further comprising:
automatically storing the datafile containing optical character recognition data in a secure database based upon the automatically populating the prescription authorization field.

### Claim 17 (depends on 15)

The method of claim 15, wherein regular expression matching logic is applied to the datafile containing optical character recognition data to identify data associated with at least one of: owner name, pet name, record identifier for a prescription, clinic name, authorization status, refill authorization data, reason for requiring compound prescription and combinations thereof.

### Claim at position 11

18-29. (canceled)

### Claim 30 (depends on 1)

The method of claim 1 further comprising:
simultaneously implementing one or more instances of an exemplary routine by implementing instances of pre-programmed elements in parallel.

### Claim at position 13

31-34. (canceled)

### Claim 35 (depends on 1)

The method claim 1, wherein at least one pre-programmed element is a long-running pre-programmed element that is programmed to cause other pre-programmed elements within an instance of the exemplary routine in which an instance of the long-running element is included to at least one of: i) pause execution until the long-running element reaches a completion state; ii) delay completion until the long-running element reaches the completion state.

### Claim at position 15

36-40. (canceled)

### Claim 41 (depends on 1)

The method of claim 1, wherein each pre-programmed element is fully executable without being directly dependent upon the execution of any other pre-programmed element.

### Claim 42 (depends on 1)

The method of claim 1, wherein a failure of one instance of one of the pre-programmed elements does not prevent the execution and completion of another instance of the same pre-programmed element.

### Claim at position 18

43-46. (canceled)

### Claim 47

A system for implementing a fault tolerant automated sequence of computer implemented tasks comprising:
a database configured to store pre-programmed elements that each include an independently executable self-contained unit of computer code configured to perform a specific task; and
a processing server coupled to the database having a central processing unit, memory, an input port, and an output port, the processing server being further coupled to a plurality of client devices and a monitoring server, the processing server being configured to:
present for selection by a user a plurality of the pre-programmed elements, each pre-programmed element being independently executable relative each other pre-programmed element such that an output of any of the pre-programmed elements is not a direct input to any other of the pre-programmed elements;
receive from the user a selection of one or more of the pre-programmed elements and a sequence for performing each pre-programmed element in the selection to form an exemplary routine;
create an instance of the exemplary routine in response to a request to implement the exemplary routine, the instance of the exemplary routine including an instance of each of the selected pre-programmed elements arranged for performance in accordance with the sequence and being configured to perform tasks defined by the pre-programmed elements and the sequence;
initiate implementation of the instance of the exemplary routine by initiating performance of the instances of the pre-programmed elements in accordance with the sequence; and
execute each instance of the pre-programmed elements according to the sequence.

### Claim at position 20

48-55. (canceled)

### Claim 56 (depends on 47)

The system of claim 47, wherein the processing server is further configured to:
detect an error that prevents completion of at least one instance of the pre-programmed elements; and
terminate the implementation of the instance of the exemplary routine upon detection of the error without user intervention.

### Claim 57 (depends on 56)

The system of claim 56, wherein the processing server is further configured to:
after detecting the error and prior to terminating implementation of the instance, attempt to re-implement at least one instance of the pre-programmed elements associated with the detected error.

### Claim 58 (depends on 56)

The system of claim 56, wherein the processing server is further configured to:
detecting a trigger event that triggers, without user intervention, a re-initiation of the performance of the instance of at least one of the pre-programmed elements and wherein an error state that prevents the completion of the at least one instance arises after a subsequent trigger event is detected following a pre-selected number of re-initiations of the performance of the at least one instance of the pre-programmed element.

### Claim 59 (depends on 56)

The system of claim 56, wherein the processing server is further configured to:
define a retry threshold value for each of the pre-programmed elements; and
after detecting the error and prior to terminating implementation of the instance, attempt to re-implement the at least one instance of the pre-programmed elements associated with the detected error in accordance with the retry threshold value.

### Claim 60 (depends on 47)

The system of claim 47, wherein the processing server is further configured to:
during implementation of the instance of the exemplary routine, detect the absence of prescription authorization data needed to complete the implementation of the instance of the exemplary routine;
based on the absence of the prescription authorization, automatically transmit an authorization form to an authorizing entity;
receive an authorization facsimile of a completed form in response to the automatic transmitting; and
automatically populate a prescription authorization field in the database based upon the received facsimile.

### Claim 61 (depends on 60)

The system of claim 60, wherein the processing server is further configured to:
receive a datafile containing optical character recognition data associated with the authorization facsimile.

### Claim 62 (depends on 61)

The system of claim 61, wherein the processing server is further configured to:
automatically store the datafile containing optical character recognition data in a secure database based upon the automatically populating the prescription authorization field.

### Claim 63 (depends on 61)

The system of claim 61, wherein regular expression matching logic is applied to the datafile containing optical character recognition data to identify data associated with at least one of: owner name, pet name, record identifier for a prescription, clinic name, authorization status, refill authorization data, reason for requiring compound prescription and combinations thereof.

### Claim at position 29

64-75. (canceled)

### Claim 76 (depends on 47)

The system of claim 47, wherein the processing server is further configured to:
simultaneously implement one or more instances of an exemplary routine by implementing instances of pre-programmed elements in parallel.

### Claim at position 31

77-80. (canceled)

### Claim 81 (depends on 47)

The system of claim 47, wherein at least one pre-programmed element is a long-running pre-programmed element that is programmed to cause other pre-programmed elements within an instance of the exemplary routine in which an instance of the long-running element is included to at least one of: i) pause execution until the long-running element reaches a completion state; ii) delay completion until the long-running element reaches the completion state.

### Claim at position 33

82-86. (canceled)

### Claim 87 (depends on 47)

The system of claim 47, wherein each pre-programmed element is fully executable without being directly dependent upon the execution of any other pre-programmed element.

### Claim 88 (depends on 47)

The system of claim 47, wherein a failure of one instance of one of the pre-programmed elements does not prevent the execution and completion of another instance of the same pre-programmed element.

### Claim at position 36

89-92. (canceled)
