Health NZ | Te Whatu Ora FHIR Mockplus System Implementation Guide
0.0.4 - draft
Health NZ | Te Whatu Ora FHIR Mockplus System Implementation Guide - Local Development build (v0.0.4) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
Each application (client ID/secret) has its own tenant. All REST access to the client tenant is via the Digital Services Hub Connector Plane.
This collection is generated from the Mock+ OpenCollection in hnz-bruno. It includes the public, admin, AIR, HPI, NHI, NES, MWS, and SDHR requests, together with an explicit client-credentials authentication request for every scope context. Legacy gateway requests are intentionally excluded. Each API is a single folder; read and write requests are kept together.
The collection contains mutations, including tenant reset and seed operations. Review a folder before running it, and use approved synthetic data for create requests.
MockPlus-Smoke-Test.postman_collection
The environment contains non-sensitive TEST configuration and empty secret placeholders. Set these environment variables in Postman before running protected requests:
mock_plus_default_client_secretmock_plus_admin_client_secretmock_plus_sdhr_client_secret for the dedicated SDHR mock endpointRun the Authenticate request at the start of a protected folder before its API requests. Folder runs and collection runs do this automatically because authentication requests are ordered first. The collection validates the configured Mock+ Request-Context values before each request.
The SDHR folder uses the dedicated SDHR client profile, a validated base64 Request-Context, and a scope containing system/Immunization.rs.

To execute with Newman, pass credentials as environment overrides for protected requests. The full collection includes destructive and manual mutations, so select a safe folder or request unless a full reset/seed/create run is intended. For example, the public metadata requests need no credentials:
newman run MockPlus-Smoke-Test.postman_collection -e Mockplus.postman_environment --folder Public
To regenerate the artifacts from a neighbouring hnz-bruno checkout:
ruby scripts/generate-postman.rb ../hnz-bruno
