Students
Tuition Fee
Start Date
Medium of studying
Fully Online
Duration
Details
Program Details
Degree
Courses
Major
Health and Safety | Industrial Hygiene | Occupational Safety
Area of study
Hygiene and occupational health services
Education type
Fully Online
Course Language
English
About Program

Program Overview


Program Overview

The Chemical Safety Refresher course is designed to discuss legislative guidelines and UBC best-practices for general safety, storage, handling, controls, and emergency procedures.


Course Description

This course covers legislative guidelines such as the Workplace Hazardous Materials Information System and Transportation of Dangerous Goods Regulations.


Prerequisite

The "Chemical Safety" course must be completed within the last 5 years.


Course Structure

This course consists of 6 x 15 minute online modules, each followed by a quiz and a final exam after all modules.


Keywords

  • Online
  • OE
  • UBC Okanagan
  • OGCS
  • Job Required Training
  • JBRDTG
  • OSSY
  • Operations & Safety
  • RHDT ```python
    """
    Extracts relevant information related to a university program from the provided markdown content.
    
    Args:
    markdown_content (str): The markdown content to extract information from.
    
    Returns:
    str: The extracted program information in a structured markdown format.
    """
    
    # Check if the input is valid
    if "404 Error" in markdown_content or not markdown_content:
        return "NA"
    
    # Extract the course description
    course_description = ""
    if "COURSE DESCRIPTION:" in markdown_content:
        start_index = markdown_content.find("COURSE DESCRIPTION:")
        end_index = markdown_content.find("PREREQUISITE:")
        course_description = markdown_content[start_index + 18:end_index].strip()
    
    # Extract the prerequisite
    prerequisite = ""
    if "PREREQUISITE:" in markdown_content:
        start_index = markdown_content.find("PREREQUISITE:")
        end_index = markdown_content.find("COURSE STRUCTURE:")
        prerequisite = markdown_content[start_index + 12:end_index].strip()
    
    # Extract the course structure
    course_structure = ""
    if "COURSE STRUCTURE:" in markdown_content:
        start_index = markdown_content.find("COURSE STRUCTURE:")
        end_index = markdown_content.find("Keywords:")
        course_structure = markdown_content[start_index + 16:end_index].strip()
    
    # Extract the keywords
    keywords = []
    if "Keywords:" in markdown_content:
        start_index = markdown_content.find("Keywords:")
        end_index = markdown_content.find("Have questions?")
        keywords_string = markdown_content[start_index + 9:end_index].strip()
        keywords = [keyword.strip() for keyword in keywords_string.split(",")]
    
    # Format the extracted text in markdown
    program_info = ""
    program_info += "## Program Overview\n"
    program_info += "The Chemical Safety Refresher course is designed to discuss legislative guidelines and UBC best-practices for general safety, storage, handling, controls, and emergency procedures.\n\n"
    program_info += "## Course Description\n"
    program_info += course_description + "\n\n"
    program_info += "## Prerequisite\n"
    program_info += prerequisite + "\n\n"
    program_info += "## Course Structure\n"
    program_info += course_structure + "\n\n"
    program_info += "## Keywords\n"
    program_info += "- " + "\n- ".join(keywords)
    
    return program_info

# Test the function
markdown_content = """
### Context:
Skip To Content

Login

Cart

Free

Course

#  Chemical Safety Refresher

****

Enroll Now

Add to Cart

## Full course description

COURSE DESCRIPTION:

This course discusses legislative guidelines such as the Workplace Hazardous
Materials Information System and Transportation of Dangerous Goods
Regulations, as well as UBC best-practices for general safety, storage,
handling, controls, and emergency procedures.



PREREQUISITE:

The "Chemical Safety" course must be completed within the last 5 years.  



COURSE STRUCTURE:

This course consists of 6 x 15 minute online modules, each followed by a quiz
and a final exam after all modules.



Keywords: Online, OE, UBC Okanagan, OGCS, Job Required Training, JBRDTG, OSSY,
Operations & Safety, RHDT

Have questions? Contact support

  * WPL Course Catalog
  * Terms of Use
  * Privacy Policy
  * Keyboard Shortcuts

 2025 The University of British Columbia All Rights Reserved.

Add to Cart Add to Cart
"""

print(extract_program_info(markdown_content))
See More
How can I help you today?