Skip to content

RxClass Information

Retrieves detailed information about a drug class from RxClass using a class ID. Returns a JSON-formatted string with the class data and a status message. Includes input validation and consistent error reporting.
Preview

Usage

Use this node when you have a known RxClass class identifier and need to fetch its details (e.g., to display class metadata or feed downstream classification analysis). Typical workflow: search or determine a class ID, pass it to this node, then parse the returned JSON for class attributes.

Inputs

FieldRequiredTypeDescriptionExample
class_idTrueSTRINGThe RxClass class identifier to query. This is the unique ID used by RxClass to reference a specific drug class.100

Outputs

FieldTypeDescriptionExample
class_infoSTRINGPretty-printed JSON string containing the fetched class information. Structure: {"class_id": "", "data": }. On errors, may contain an "error" field in the data.{"class_id":"100","data":{...}}
statusSTRINGHuman-readable status message indicating success or describing the error.Successfully retrieved RxClass info for class ID 100

Important Notes

  • Input required: class_id must be a non-empty string; empty input returns an error.
  • Output format: class_info is a JSON string; parse it before programmatic use.
  • Error reporting: If the upstream service reports an issue, status will include an "API Error" message and class_info will contain the error details as JSON.
  • Data source: Results reflect current data available from RxClass and may change over time.

Troubleshooting

  • Empty input: If status says "Error: Class ID cannot be empty", provide a valid class_id.
  • Invalid class ID: If status contains "API Error", verify the class_id against RxClass and try again.
  • Malformed JSON usage: If downstream nodes fail to parse class_info, ensure you parse the JSON string before accessing fields.
  • Network or rate limits: Temporary service issues can cause API errors; retry after a short delay.