{"id":24752059,"url":"https://github.com/inferno-framework/dynamic-example-information","last_synced_at":"2026-05-06T05:39:36.518Z","repository":{"id":52707588,"uuid":"354974732","full_name":"inferno-framework/dynamic-example-information","owner":"inferno-framework","description":"Project to generate example information dynamically based on a HL7 FHIR implementation guide!","archived":false,"fork":false,"pushed_at":"2021-04-26T23:47:28.000Z","size":12689,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-17T04:28:43.142Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inferno-framework.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-05T21:14:30.000Z","updated_at":"2021-04-26T23:47:31.000Z","dependencies_parsed_at":"2022-08-22T07:40:58.411Z","dependency_job_id":null,"html_url":"https://github.com/inferno-framework/dynamic-example-information","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inferno-framework%2Fdynamic-example-information","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inferno-framework%2Fdynamic-example-information/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inferno-framework%2Fdynamic-example-information/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inferno-framework%2Fdynamic-example-information/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inferno-framework","download_url":"https://codeload.github.com/inferno-framework/dynamic-example-information/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245052671,"owners_count":20553172,"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":"2025-01-28T10:34:39.693Z","updated_at":"2026-05-06T05:39:31.495Z","avatar_url":"https://github.com/inferno-framework.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dynamic-example-information\nProject to generate example information dynamically based on a HL7 FHIR implementation guide!\n\n# Running the App\nThere is currently a single rake task maintained for running the application.\nCardinality options are max, min, or random. Max is generally the best option when testing the application.\n```\n# Running the application across US Core IG, creating 2 examples per resource, using the maximum cardinality allowed (with a ceiling of 3). 'lib/data/uscore' Must contain US Core package.\nrake fhir_gen:run[uscore,2,max]\n\n```\n\n# Directories\n\n1. lib: App code\n2. lib/data: Contains any raw data sources that have been getting used during development. IG packages should be placed here, and their name fed into the rake task.\n3. lib/faker/locales: Contains the YAML files used to populate Faker's values.\n4. examples: Output for JSON representation of the created example. Current out is in the \"pretty format\".\n5. logs: Logs any values that the application failed to fake.\n\n# Class Files\n1. fhir_gen.rb: Entry point for application\n2. tasks.rake: CLI definitions for running the application.\n3. structure_defition.rb - Wraps up a single resource example. StructureDefinition's always have 1 Fieldset.\n4. field_set.rb - Does all the real work of building our resource's structure. Fieldsets have 0..* other fieldsets \u0026 fields.\n5. field.rb - This class represents a terminal atomic value in our example. Has all of the data associated with a single snapshot element, and the value we decided to use as our fake data. All the logic for picking some fake data is currently in here.\n\n# TODO:\n1. Support for extensions.\n\n2. Node name's with ':' in them cannot be faked\n\n3. Node name's that share their name with a default Ruby Object method cannot be faked\n\n4. Missing a few ValueSets\n\n# Ruby Tips\n\n1. Add a binding.pry anywhere in the code to stop execution and take a look.\n    1. 'exit' will continue execution\n    2. 'send :exit' will completely stop execution\n\n2. Run 'bundle install' after a pull if you are having dependency issues. I added a Gemfile, which is the equivalent of a requirements.txt.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finferno-framework%2Fdynamic-example-information","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finferno-framework%2Fdynamic-example-information","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finferno-framework%2Fdynamic-example-information/lists"}