{"id":21558775,"url":"https://github.com/abinoam/cbhpm_table","last_synced_at":"2025-04-10T10:42:47.198Z","repository":{"id":22532684,"uuid":"25873350","full_name":"abinoam/cbhpm_table","owner":"abinoam","description":"CBHPM Table","archived":false,"fork":false,"pushed_at":"2022-06-06T18:13:52.000Z","size":47,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T09:38:22.296Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abinoam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-28T14:30:33.000Z","updated_at":"2023-07-16T20:41:46.000Z","dependencies_parsed_at":"2022-08-21T07:00:32.400Z","dependency_job_id":null,"html_url":"https://github.com/abinoam/cbhpm_table","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abinoam%2Fcbhpm_table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abinoam%2Fcbhpm_table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abinoam%2Fcbhpm_table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abinoam%2Fcbhpm_table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abinoam","download_url":"https://codeload.github.com/abinoam/cbhpm_table/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247819947,"owners_count":21001393,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T08:15:47.878Z","updated_at":"2025-04-10T10:42:47.179Z","avatar_url":"https://github.com/abinoam.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Gem Version](https://badge.fury.io/rb/cbhpm_table.svg)](http://badge.fury.io/rb/cbhpm_table)\n[![Build Status](https://travis-ci.org/abinoam/cbhpm_table.svg?branch=master)](https://travis-ci.org/abinoam/cbhpm_table)\n[![Code Climate](https://codeclimate.com/github/abinoam/cbhpm_table/badges/gpa.svg)](https://codeclimate.com/github/abinoam/cbhpm_table)\n[![Test Coverage](https://codeclimate.com/github/abinoam/cbhpm_table/badges/coverage.svg)](https://codeclimate.com/github/abinoam/cbhpm_table/coverage)\n\n# CBHPMTable\n\nA simple gem to wrap the CBHPM excel files from Associação Brasileira de Medicina.\n\n**CBHPM**:\n\n* Classificação Brasileira Hierarquizada de Procedimentos Médicos (pt)\n* Brazilian Hierarchical Classification of Medical Procedures (en)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'cbhpm_table'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install cbhpm_table\n\n## Usage\n\n```ruby\ncbhpm_table = CBHPMTable.new \"CBHPM 2012.xlsx\"\n\ncbhpm_table.headers\n  #=\u003e { \"code\"=\u003e\"ID do Procedimento\", \"name\"=\u003e\"Descrição do Procedimento\", \"cir_size\"=\u003enil, \"uco\"=\u003e\"Custo Operac.\", \"aux_qty\"=\u003e\"Nº de Aux.\", \"an_size\"=\u003e\"Porte Anestés.\"}\n\ncbhpm_table.row(2)\n  #=\u003e {\"code\"=\u003e\"10101012\", \"name\"=\u003e\"Em consultório (no horário normal ou preestabelecido)\", \"cir_size\"=\u003e\"2B\", \"uco\"=\u003enil, \"aux_qty\"=\u003enil, \"an_size\"=\u003enil})}\n\ncbhpm_table.rows\n  #=\u003e # Returns an Array of Rows (as individual Hashes)\n\ncbhpm_table.each_row do |row|\n  # do whatever with the row\nend\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/[my-github-username]/cbhpm_table/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Thanks to:\n\n* Brandon Hilkert (@brandonhilkert) - for his \"Build a Ruby Gem Email Course\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabinoam%2Fcbhpm_table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabinoam%2Fcbhpm_table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabinoam%2Fcbhpm_table/lists"}