{"id":15904093,"url":"https://github.com/dermatologist/omopcdm-dot-net","last_synced_at":"2025-07-16T21:13:03.498Z","repository":{"id":88879660,"uuid":"261793369","full_name":"dermatologist/omopcdm-dot-net","owner":"dermatologist","description":":notebook: .Net library for OMOP CDM management","archived":false,"fork":false,"pushed_at":"2020-12-28T02:10:30.000Z","size":106,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-03-17T17:56:24.438Z","etag":null,"topics":["cdm","healthcare-analysis","ohdsi-vocabulary","omop"],"latest_commit_sha":null,"homepage":"https://nuchange.ca","language":"C#","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/dermatologist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-06T15:00:33.000Z","updated_at":"2022-09-17T08:51:46.000Z","dependencies_parsed_at":"2023-06-12T23:15:25.645Z","dependency_job_id":null,"html_url":"https://github.com/dermatologist/omopcdm-dot-net","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dermatologist%2Fomopcdm-dot-net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dermatologist%2Fomopcdm-dot-net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dermatologist%2Fomopcdm-dot-net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dermatologist%2Fomopcdm-dot-net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dermatologist","download_url":"https://codeload.github.com/dermatologist/omopcdm-dot-net/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244685452,"owners_count":20493269,"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":["cdm","healthcare-analysis","ohdsi-vocabulary","omop"],"created_at":"2024-10-06T12:21:21.723Z","updated_at":"2025-03-20T20:31:14.585Z","avatar_url":"https://github.com/dermatologist.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# omopcdm-dot-net\n\n![Nuget](https://img.shields.io/nuget/dt/omopcdmlib)\n\n## Description\n\nThe OHSDI OMOP Common Data Model allows for the systematic analysis of healthcare observational databases. This is a .Net Core library to use the CDM v6 compliant databases.\n\n## Install\n\n```\nPM\u003e Install-Package omopcdmlib\n\n```\n\n## Usage\n\n```\n        var optionsBuilder = new DbContextOptionsBuilder\u003cAppContext\u003e();\n        optionsBuilder.UseSqlite(\"Data Source=cdm-create.db\");\n\n            // AppContext from models\n            using (var db = new AppContext(optionsBuilder.Options))\n            {\n                // Create vocab\n                Console.WriteLine(\"Writing vocabulary\");\n                var vocab = new CreateVocab(\"/path/to/csv\", db);\n                vocab.Create(20); // Sample of 20 records. Omit to create full.\n\n                // Create\n                Console.WriteLine(\"Inserting a new Concept\");\n                db.Add(new Concept { \n                                    Id=22,\n                                    ConceptId = 4523432,\n                                    ConceptName = \"My Concept\", \n                                    VocabularyId = \"SNOMED\",\n                                    ConceptClassId = \"MyClass\",\n                                    ConceptCode = \"MyCode\",\n                                    ValidStartDate = \"2012-12-12\",\n                                    ValidEndDate = \"2012-12-12\",\n                                    InvalidReason = \"None\",\n                                    DomainId = \"ASDF\" });\n                db.SaveChanges();\n\n                // Read\n                Console.WriteLine(\"Querying for a concept\");\n                var concept = db.Concept\n                    .OrderBy(b =\u003e b.ConceptName)\n                    .First();\n\n                // Update\n                Console.WriteLine(\"Updating the concept\");\n                concept.ConceptName = \"new Concept\";\n                db.SaveChanges();\n\n                // Delete\n                Console.WriteLine(\"Delete the concept\");\n                db.Remove(concept);\n                db.SaveChanges();\n\n```\n\n## Contributors\n\n* [Bell Eapen](https://nuchange.ca) | [![Twitter Follow](https://img.shields.io/twitter/follow/beapen?style=social)](https://twitter.com/beapen)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdermatologist%2Fomopcdm-dot-net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdermatologist%2Fomopcdm-dot-net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdermatologist%2Fomopcdm-dot-net/lists"}