Skip to content

RxClass Information

Retrieves detailed information about a specific RxClass using its class ID and returns the results as a JSON string. It validates that the class ID is provided, calls the underlying RxNorm service, and formats the response with the provided class_id and returned data. Status messages indicate success or provide error details if the API reports an issue.
Preview

Usage

Use this node when you have an RxClass identifier and need structured metadata about that class (e.g., to display details, verify a class, or feed downstream nodes that require class context). Typical workflow: search or select a class via a search node, pass the class_id here to fetch details, then parse the JSON output for display or further processing.

Inputs

FieldRequiredTypeDescriptionExample
class_idTrueSTRINGThe RxClass identifier to query. Must be a non-empty string representing a valid RxClass class ID.100

Outputs

FieldTypeDescriptionExample
class_infoSTRINGJSON string containing the requested RxClass information, wrapped as {"class_id": ..., "data": ...}.{"class_id": "100", "data": {"rxclassMinConceptItem": {"classId": "100", "className": "Example Class", "classType": "ATC"}}}
statusSTRINGHuman-readable status message describing the result of the operation or the error encountered.Successfully retrieved RxClass info for class ID 100

Important Notes

  • Inputs must not be empty; an empty class_id returns an empty JSON object and an error status.
  • The class_info output is always a JSON string; downstream consumers should parse it before use.
  • If the underlying RxNorm service returns an error, the JSON may include an "error" field and the status will begin with "API Error:".
  • This node does not validate whether the class_id corresponds to a specific classification system; ensure you provide the correct identifier from your source.
  • Network issues or service outages will result in a generic error message and an empty JSON object for class_info.

Troubleshooting

  • Empty class_id: Provide a non-empty RxClass class ID; the node returns "Error: Class ID cannot be empty" if omitted.
  • Invalid or unknown class_id: You may receive an API Error status and a payload containing an "error" field; verify the ID from a prior search step.
  • Parsing output: If a downstream step cannot read class_info, ensure you parse the JSON string before accessing fields.
  • Intermittent API failures: Retry the operation or verify connectivity; check rate limits or service status if repeated API Error statuses occur.