The present disclosure provides a stable solid pharmaceutical dosage form for oral administration. The dosage form includes a substrate that forms at least one compartment and a drug content loaded into the compartment. The dosage form is so designed that the active pharmaceutical ingredient of the drug content is released in a controlled manner.