{"id":51271612,"url":"https://github.com/projkov/ph-inferno-test-kit","last_synced_at":"2026-06-29T18:06:44.647Z","repository":{"id":366564002,"uuid":"1276791403","full_name":"projkov/ph-inferno-test-kit","owner":"projkov","description":"Inferno test kit for FHIR server conformance to the PH Core Implementation Guide.","archived":false,"fork":false,"pushed_at":"2026-06-22T10:38:32.000Z","size":1562,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-22T12:14:25.470Z","etag":null,"topics":["fhir","fhir-ig","fhir-implementation-guide","inferno"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/projkov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-22T09:45:30.000Z","updated_at":"2026-06-22T10:57:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/projkov/ph-inferno-test-kit","commit_stats":null,"previous_names":["projkov/ph-inferno-test-kit"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/projkov/ph-inferno-test-kit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projkov%2Fph-inferno-test-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projkov%2Fph-inferno-test-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projkov%2Fph-inferno-test-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projkov%2Fph-inferno-test-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/projkov","download_url":"https://codeload.github.com/projkov/ph-inferno-test-kit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projkov%2Fph-inferno-test-kit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34937493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["fhir","fhir-ig","fhir-implementation-guide","inferno"],"created_at":"2026-06-29T18:06:43.864Z","updated_at":"2026-06-29T18:06:44.637Z","avatar_url":"https://github.com/projkov.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PH Core Test Kit\n\nAn [Inferno](https://inferno-framework.github.io/) test kit for testing FHIR server conformance to the [PH Core Implementation Guide](https://fhir.doh.gov.ph/phcore/ImplementationGuide/fhir.ph.core).\n\n- **IG package ID:** `fhir.ph.core`\n- **IG version:** `0.2.0-ci-build`\n- **CapabilityStatement:** `https://fhir.doh.gov.ph/phcore/CapabilityStatement/ph-core-server`\n- **Terminology server:** `https://tx.fhir.org/r4`\n\n## What is tested\n\nThe suite is auto-generated from the PH Core IG using the [InfernoSuiteGenerator](https://github.com/hl7au/inferno_suite_generator) gem. It covers the following resource groups:\n\n| Resource group | Notes |\n|---|---|\n| Patient | First-class profile with search tests |\n| Condition | |\n| Encounter | |\n| Observation | |\n| Organization | |\n| Practitioner | |\n| PractitionerRole | |\n\nResources skipped by configuration: `Medication`, `DiagnosticReport`, `Bundle`, `Parameters`.\n\n## Quick start\n\n### Prerequisites\n\n- Docker and Docker Compose\n\n### Running the stack\n\n```sh\nmake setup    # pull images, build, run DB migrations\nmake run      # build + start all services (available at http://localhost)\nmake tests    # run the RSpec suite\nmake stop     # stop containers\nmake down     # stop and remove containers\n```\n\nOther useful targets:\n\n```sh\nmake generate            # regenerate tests from the IG (inside Docker)\nMODE=local make generate # regenerate tests using local Ruby\nmake migrate             # run DB migrations only\nmake rubocop             # lint via RuboCop\nmake rubocop-fix         # lint and auto-fix\nmake clean_generated     # wipe generated tests (restores from git)\nmake start_from_zero     # stop + down + setup + run\nmake full_develop_restart  # stop + down + generate + setup + run\n```\n\n## Suite inputs\n\n| Input | Required | Default | Description |\n|---|---|---|---|\n| `url` | Yes | `https://hapi.fhir.org/baseR4` | FHIR endpoint URL |\n| `smart_credentials` | No | — | OAuth credentials |\n| `header_name` / `header_value` | No | — | Optional HTTP header to pass with every request |\n\n## Configuration\n\n`config.json` is the single source of truth for suite configuration. Key sections:\n\n- **`ig`** — IG package ID, name, version, and CapabilityStatement URLs\n- **`suite`** — display title, terminology server, sidebar links\n- **`constants`** — default values pre-filled in the Inferno UI\n- **`configs.profiles`** — per-profile options (e.g. `first_class_profile`)\n- **`configs.resources`** — per-resource options (e.g. `\"skip\": true`)\n\n## Project structure\n\n```\nbin/\n  wizard            # interactive configuration wizard (Ruby / Thor)\n  setup.sh          # runs the wizard inside a Docker container\nconfig/\n  database.yml      # DB connection config\n  nginx.conf        # nginx reverse-proxy config\n  puma.rb           # Puma web server config\nconfig.json         # suite configuration (IG, constants, profiles)\nenv/\n  app               # app environment variables\n  aidbox            # Aidbox-specific environment variables\nlib/\n  ph_core_test_kit.rb         # main kit entry point\n  ph_core_test_kit/\n    version.rb                # gem version\n    igs/                      # IG .tgz packages\n    generated/v0.2.0-ci-build/ # auto-generated tests (do not edit)\nspec/               # RSpec test suite\ncompose.yaml        # default Docker Compose stack\ncompose.aidbox.yaml # Aidbox variant\nDockerfile\nMakefile            # common dev tasks\nProcfile            # process definitions for foreman/overmind\nRakefile            # Rake task definitions\nworker.rb           # background worker entry point\n```\n\n## Aidbox variant\n\nSet your Aidbox license in `.env`:\n\n```\nAIDBOX_LICENSE=your-license-key\n```\n\nThen pass `MODE=aidbox` to any make target:\n\n```sh\nMODE=aidbox make run\n```\n\n## Regenerating tests\n\nIf you update the IG package or `config.json`, regenerate the test suite:\n\n1. Place the updated IG package at `lib/ph_core_test_kit/igs/\u003cversion\u003e.tgz`\n2. Run `make generate` (or `MODE=local make generate` to run without Docker)\n\n## Links\n\n- [Report an issue](https://github.com/projkov/ph-inferno-test-kit/issues)\n- [Source code](https://github.com/projkov/ph-inferno-test-kit)\n- [PH Core Implementation Guide](https://fhir.doh.gov.ph/phcore/ImplementationGuide/fhir.ph.core)\n\n## Based on\n\nThis kit was scaffolded from the [inferno-suite-template](https://github.com/beda-software/inferno-suite-template) — a starter template for building Inferno test kits against any FHIR Implementation Guide. The template ships with a configuration wizard and a code-generation pipeline powered by the [InfernoSuiteGenerator](https://github.com/hl7au/inferno_suite_generator) gem.\n\n## License\n\n[Apache-2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojkov%2Fph-inferno-test-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprojkov%2Fph-inferno-test-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojkov%2Fph-inferno-test-kit/lists"}