{
  "reportFormat": "CTRF",
  "specVersion": "0.2.0",
  "timestamp": "2026-11-21T21:50:32Z",
  "generatedBy": "cascade-runtime-js packages/site",
  "extra": {
    "glossary": {
      "cascade-sandbox": [
        {
          "id": "glossary-cascade-sandbox-aud",
          "term": "aud",
          "definition": "the parameter of an authorize request in which the app names the FHIR base it means to read from; a hospital refuses one that is not its own."
        },
        {
          "id": "glossary-cascade-sandbox-authorization-code",
          "term": "authorization code",
          "definition": "the one-time code that arrives at the redirect URI from a sign-in, which the app trades for the token.",
          "aliases": [
            "authorization codes"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-brands-bundle",
          "term": "brands bundle",
          "definition": "the list of the hospitals that use a vendor's system, as the vendor publishes it in SMART's User-access Brands format: a FHIR Bundle of Organizations, each pointing to the endpoint its records are served from.",
          "vocabulary": "https://hl7.org/fhir/smart-app-launch/brands.html",
          "aliases": [
            "brands bundles"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-bundle",
          "term": "Bundle",
          "definition": "FHIR's resource that holds a list of other resources, each in an `entry`; its `type` says what the list is, such as `collection`, `history` or `searchset`.",
          "aliases": [
            "Bundles"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-c-cda",
          "term": "C-CDA",
          "definition": "Consolidated Clinical Document Architecture: HL7's standard for the XML summary documents patient portals hand out."
        },
        {
          "id": "glossary-cascade-sandbox-client-id",
          "term": "client id",
          "definition": "the name an app gives for itself when it asks to sign a patient in; a demo hospital accepts any.",
          "aliases": [
            "client ids"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-clinical-date",
          "term": "clinical date",
          "definition": "the date a record gives for the thing it records, such as a result's `effectiveDateTime` or a condition's `onsetDateTime`.",
          "aliases": [
            "clinical dates"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-code-system",
          "term": "code system",
          "definition": "a published list of codes for one kind of thing, such as RxNorm for medicines, LOINC for lab tests and SNOMED CT for clinical findings.",
          "aliases": [
            "code systems"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-deletion",
          "term": "deletion",
          "definition": "an entry of a record's history that says the hospital removed the record at that time; it carries no resource.",
          "aliases": [
            "deletions",
            "deleted"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-demo-hospital",
          "term": "demo hospital",
          "definition": "a pretend hospital with made-up patients, which an app or a test signs in to and pulls from with no account and no network; Cascade North and Cascade South are the two this package carries.",
          "aliases": [
            "demo hospitals"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-difference",
          "term": "difference",
          "definition": "a place where one hospital's record of a person disagrees with who the person is, such as a misspelt name, which the person's `person.json` declares so that the load accepts it.",
          "aliases": [
            "differences",
            "declared difference"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-discovery",
          "term": "discovery",
          "definition": "the request for a hospital's SMART configuration, with which every sign-in begins."
        },
        {
          "id": "glossary-cascade-sandbox-endpoint",
          "term": "Endpoint",
          "definition": "FHIR's resource for an address a system is reached at; in a brands bundle, a hospital's FHIR base.",
          "aliases": [
            "Endpoints"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-etag",
          "term": "etag",
          "definition": "the version stamp of a history entry, written `W/\"<version id>\"`.",
          "aliases": [
            "etags"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-fhir",
          "term": "FHIR",
          "definition": "Fast Healthcare Interoperability Resources: HL7's standard for health records as JSON.",
          "vocabulary": "https://hl7.org/fhir/R4/"
        },
        {
          "id": "glossary-cascade-sandbox-fhir-base",
          "term": "FHIR base",
          "definition": "the URL of a hospital's FHIR server; each record there is at `<FHIR base>/<type>/<id>`.",
          "vocabulary": "https://ns.cascadeprotocol.org/cascade#serverBaseUrl",
          "aliases": [
            "FHIR bases"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-forwarded",
          "term": "Forwarded",
          "definition": "the HTTP header in which a go-between says which host and protocol the client asked for; `demoRemapFetch()` sends it to the listener."
        },
        {
          "id": "glossary-cascade-sandbox-generated-people",
          "term": "generated people",
          "definition": "the people this package made with Synthea: ten years of visits, conditions, medications and results each.",
          "aliases": [
            "generated person",
            "generated patient"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-hand-written-people",
          "term": "hand-written people",
          "definition": "the people written by hand for tests, which this package copies from cascade-vocabulary and does not edit."
        },
        {
          "id": "glossary-cascade-sandbox-history",
          "term": "history",
          "definition": "every version of one record, newest first, as a hospital answers `<type>/<id>/_history`; also the type of a patient file that holds one entry for each version.",
          "aliases": [
            "histories"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-host",
          "term": "Host",
          "definition": "the HTTP header in which a client says which server name it asked for."
        },
        {
          "id": "glossary-cascade-sandbox-instant",
          "term": "instant",
          "definition": "a date and time to the second with its time zone, such as `2024-02-01T00:00:00Z`.",
          "aliases": [
            "instants"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-kit",
          "term": "kit",
          "definition": "a story and the exports it uses, which the vocabulary carries for testing, such as `alex-rivera`.",
          "aliases": [
            "kits"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-launcher",
          "term": "launcher",
          "definition": "the SMART Health IT launcher, `launch.smarthealthit.org`: a public test hospital on the internet, kept by the SMART project, which this project did not write. Its code is smart-launcher-v2."
        },
        {
          "id": "glossary-cascade-sandbox-listener",
          "term": "listener",
          "definition": "the demo hospitals served on a port of this machine by `serveDemo()` or `npm run serve`, each at `<origin>/<id>/fhir`.",
          "aliases": [
            "listeners"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-metadata",
          "term": "metadata",
          "definition": "`<FHIR base>/metadata`, where a FHIR server says what it supports: the types it serves, how each is searched, and where its sign-in is."
        },
        {
          "id": "glossary-cascade-sandbox-official-name",
          "term": "official name",
          "definition": "the name of a Patient marked `use: \"official\"`, or its only name."
        },
        {
          "id": "glossary-cascade-sandbox-operationoutcome",
          "term": "OperationOutcome",
          "definition": "FHIR's resource for a server's warning or error message; it is no record of the patient."
        },
        {
          "id": "glossary-cascade-sandbox-organization",
          "term": "Organization",
          "definition": "FHIR's resource for a hospital, a clinic, a laboratory or another body that gives care.",
          "vocabulary": "https://ns.cascadeprotocol.org/cascade#Organization",
          "aliases": [
            "Organizations"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-origin",
          "term": "origin",
          "definition": "the scheme, server name and port of a URL, such as `https://hospital.example`: what a browser treats as one site.",
          "aliases": [
            "origins"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-patient",
          "term": "patient",
          "definition": "a person as one hospital knows them, under that hospital's own patient id.",
          "aliases": [
            "patients"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-patient-file",
          "term": "patient file",
          "definition": "the file of what one hospital holds of one person, `people/<person>/sources/<hospital>/fhir.json`: a FHIR Bundle of type `collection` or `history`.",
          "aliases": [
            "patient files"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-person",
          "term": "person",
          "definition": "a made-up human being, with a name, a birth date and a gender in `person.json`, who is a patient at one hospital or more.",
          "aliases": [
            "people"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-pkce",
          "term": "PKCE",
          "definition": "Proof Key for Code Exchange, RFC 7636: the part of a sign-in by which an app shows, at the token exchange, that it is the app that began the sign-in. A demo hospital takes only its S256 method."
        },
        {
          "id": "glossary-cascade-sandbox-plain-record",
          "term": "plain record",
          "definition": "a record written once in a `collection` file, with no version: it is there at every date and is served as written.",
          "aliases": [
            "plain records",
            "plain collection"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-preflight",
          "term": "preflight",
          "definition": "the OPTIONS request a browser sends before a page on one origin calls a server on another, to ask whether it may."
        },
        {
          "id": "glossary-cascade-sandbox-pull",
          "term": "pull",
          "definition": "the records one patient has at one hospital, fetched in one go: a search of each type, page by page, and a read of the Patient.",
          "aliases": [
            "pulls",
            "pulled"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-record",
          "term": "record",
          "definition": "one thing said about a person's health, such as an allergy, a medication or a lab result.",
          "vocabulary": "https://ns.cascadeprotocol.org/cascade#Record",
          "aliases": [
            "records"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-record-time",
          "term": "record time",
          "definition": "when a hospital recorded a version, the entry's `response.lastModified`.",
          "aliases": [
            "record times"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-redirect-uri",
          "term": "redirect URI",
          "definition": "the app's own URL to which a hospital sends the person's browser when the sign-in is over.",
          "aliases": [
            "redirect URIs"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-reference-tables",
          "term": "reference tables",
          "definition": "public code lists, such as RxNorm for medicines, that tell an app when two codes mean one thing; the hand-written people carry codes chosen to reach them.",
          "aliases": [
            "reference table"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-resource",
          "term": "resource",
          "definition": "one record in FHIR, named by its type and its id, such as `Observation/ldl-1`.",
          "aliases": [
            "resources"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-root",
          "term": "root",
          "definition": "a folder of hospital folders or of person folders that a load reads; a load takes a list of them.",
          "aliases": [
            "roots"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-scope",
          "term": "scope",
          "definition": "what an app asks to be let read, in SMART's notation: `patient/Observation.rs` is to read and search the patient's Observations.",
          "aliases": [
            "scopes"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-searchset",
          "term": "searchset",
          "definition": "the type of Bundle a hospital answers a search with: one page of matches and, where there are more, a link to the next."
        },
        {
          "id": "glossary-cascade-sandbox-shorthand",
          "term": "shorthand",
          "definition": "a way to write a record's change in a patient file as two dates, `active` and `stopped`, in place of two versions."
        },
        {
          "id": "glossary-cascade-sandbox-sign-in-page",
          "term": "sign-in page",
          "definition": "the page a hospital shows at its authorize address, where the patient is picked and allows or cancels what the app asks.",
          "aliases": [
            "sign-in pages"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-smart-configuration",
          "term": "SMART configuration",
          "definition": "what a hospital's server publishes at `<FHIR base>/.well-known/smart-configuration`: where its sign-in page and its token exchange are, and what they support."
        },
        {
          "id": "glossary-cascade-sandbox-smart-on-fhir",
          "term": "SMART on FHIR",
          "definition": "the standard by which an app signs a person in to a hospital and is then let read that person's records: OAuth 2.0 as HL7's SMART App Launch profiles it for FHIR servers.",
          "vocabulary": "https://hl7.org/fhir/smart-app-launch/"
        },
        {
          "id": "glossary-cascade-sandbox-source",
          "term": "source",
          "definition": "what one hospital holds of one person: the folder `sources/<hospital>/` of the person, with a patient file, C-CDA documents, or both.",
          "aliases": [
            "sources"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-state",
          "term": "state",
          "definition": "a value the app sends with the authorize request and the hospital sends back unchanged, so the app can tell its own sign-in's answer."
        },
        {
          "id": "glossary-cascade-sandbox-story",
          "term": "story",
          "definition": "a made-up patient at a demo hospital whose records were written to show one outcome, such as a lab result that falls after a medication starts, with that outcome written down beside them.",
          "aliases": [
            "stories"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-synthea",
          "term": "Synthea",
          "definition": "an open-source program that makes up whole patient histories; the generated people came from it."
        },
        {
          "id": "glossary-cascade-sandbox-token",
          "term": "token",
          "definition": "the access token a hospital issues when a person signs in: the credential an app sends with each request for that person's records.",
          "aliases": [
            "tokens",
            "access token"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-key",
          "term": "key",
          "definition": "the secret a hospital signs its tokens with (`hospital.json`'s `key`)."
        },
        {
          "id": "glossary-cascade-sandbox-invalid-client",
          "term": "invalid_client",
          "definition": "OAuth's error for a client the server does not accept; the token exchange answers 401 with it. The launcher's switch for it is named `token_invalid_token`, which differs from the error it gives."
        },
        {
          "id": "glossary-cascade-sandbox-token-exchange",
          "term": "token exchange",
          "definition": "the request in which an app trades the authorization code for the token."
        },
        {
          "id": "glossary-cascade-sandbox-version",
          "term": "version",
          "definition": "what a record says at one time; when a hospital changes a record, its history keeps the old version and adds a new one.",
          "aliases": [
            "versions"
          ]
        },
        {
          "id": "glossary-cascade-sandbox-world-s-date",
          "term": "world's date",
          "definition": "the date a hospital answers for, an instant given as `asOf`: it serves each record as it stood then. With none, it serves each record's latest version.",
          "aliases": [
            "world date"
          ]
        }
      ]
    }
  },
  "results": {
    "tool": {
      "name": "node:test"
    },
    "summary": {
      "tests": 380,
      "passed": 380,
      "failed": 0,
      "skipped": 0,
      "pending": 0,
      "other": 0,
      "start": 1795297832000,
      "stop": 1795297834794,
      "duration": 2794
    },
    "tests": [
      {
        "name": "returns a `collection` Bundle stamped with the timestamp and the brands-bundle profile",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Listing the demo hospitals as a brands bundle · brandsBundle()",
          "brandsBundle(hospitals, timestamp)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Listing the demo hospitals as a brands bundle · brandsBundle()",
              "description": "`brandsBundle()` gives the hospitals as a brands bundle, the standard document an app's list of hospitals to connect to is read from. An app tests its hospital search against it with no vendor's list."
            },
            {
              "name": "brandsBundle(hospitals, timestamp)"
            }
          ]
        },
        "filePath": "test/brands.test.ts"
      },
      {
        "name": "lists an Organization and then its Endpoint for each hospital, in the order given",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Listing the demo hospitals as a brands bundle · brandsBundle()",
          "brandsBundle(hospitals, timestamp)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Listing the demo hospitals as a brands bundle · brandsBundle()",
              "description": "`brandsBundle()` gives the hospitals as a brands bundle, the standard document an app's list of hospitals to connect to is read from. An app tests its hospital search against it with no vendor's list."
            },
            {
              "name": "brandsBundle(hospitals, timestamp)"
            }
          ]
        },
        "filePath": "test/brands.test.ts"
      },
      {
        "name": "gives each entry a `fullUrl` its Organization's reference resolves against",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Listing the demo hospitals as a brands bundle · brandsBundle()",
          "brandsBundle(hospitals, timestamp)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Listing the demo hospitals as a brands bundle · brandsBundle()",
              "description": "`brandsBundle()` gives the hospitals as a brands bundle, the standard document an app's list of hospitals to connect to is read from. An app tests its hospital search against it with no vendor's list."
            },
            {
              "name": "brandsBundle(hospitals, timestamp)"
            }
          ]
        },
        "filePath": "test/brands.test.ts"
      },
      {
        "name": "names each Organization for its hospital, with the hospital's site as identifier and telecom",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Listing the demo hospitals as a brands bundle · brandsBundle()",
          "brandsBundle(hospitals, timestamp)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Listing the demo hospitals as a brands bundle · brandsBundle()",
              "description": "`brandsBundle()` gives the hospitals as a brands bundle, the standard document an app's list of hospitals to connect to is read from. An app tests its hospital search against it with no vendor's list."
            },
            {
              "name": "brandsBundle(hospitals, timestamp)"
            }
          ]
        },
        "filePath": "test/brands.test.ts"
      },
      {
        "name": "points each Organization to its Endpoint, by `endpoint` and by its portal extension",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Listing the demo hospitals as a brands bundle · brandsBundle()",
          "brandsBundle(hospitals, timestamp)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Listing the demo hospitals as a brands bundle · brandsBundle()",
              "description": "`brandsBundle()` gives the hospitals as a brands bundle, the standard document an app's list of hospitals to connect to is read from. An app tests its hospital search against it with no vendor's list."
            },
            {
              "name": "brandsBundle(hospitals, timestamp)"
            }
          ]
        },
        "filePath": "test/brands.test.ts"
      },
      {
        "name": "gives each Endpoint the hospital's FHIR base as its address, active, as FHIR 4.0.1 over REST",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Listing the demo hospitals as a brands bundle · brandsBundle()",
          "brandsBundle(hospitals, timestamp)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Listing the demo hospitals as a brands bundle · brandsBundle()",
              "description": "`brandsBundle()` gives the hospitals as a brands bundle, the standard document an app's list of hospitals to connect to is read from. An app tests its hospital search against it with no vendor's list."
            },
            {
              "name": "brandsBundle(hospitals, timestamp)"
            }
          ]
        },
        "filePath": "test/brands.test.ts"
      },
      {
        "name": "splits each place at its last comma into a city and a state",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Listing the demo hospitals as a brands bundle · brandsBundle()",
          "brandsBundle(hospitals, timestamp)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Listing the demo hospitals as a brands bundle · brandsBundle()",
              "description": "`brandsBundle()` gives the hospitals as a brands bundle, the standard document an app's list of hospitals to connect to is read from. An app tests its hospital search against it with no vendor's list."
            },
            {
              "name": "brandsBundle(hospitals, timestamp)"
            }
          ]
        },
        "filePath": "test/brands.test.ts"
      },
      {
        "name": "omits `address` for a hospital with no places",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Listing the demo hospitals as a brands bundle · brandsBundle()",
          "brandsBundle(hospitals, timestamp)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Listing the demo hospitals as a brands bundle · brandsBundle()",
              "description": "`brandsBundle()` gives the hospitals as a brands bundle, the standard document an app's list of hospitals to connect to is read from. An app tests its hospital search against it with no vendor's list."
            },
            {
              "name": "brandsBundle(hospitals, timestamp)"
            }
          ]
        },
        "filePath": "test/brands.test.ts"
      },
      {
        "name": "keeps each file under 2 MiB",
        "status": "passed",
        "duration": 1,
        "suite": [
          "The package's people, held to the hospitals' data rules",
          "given every patient file"
        ],
        "extra": {
          "levels": [
            {
              "name": "The package's people, held to the hospitals' data rules"
            },
            {
              "name": "given every patient file"
            }
          ]
        },
        "filePath": "test/data-rules.test.ts"
      },
      {
        "name": "holds each record in one patient's file of its hospital",
        "status": "passed",
        "duration": 1,
        "suite": [
          "The package's people, held to the hospitals' data rules",
          "given every patient file"
        ],
        "extra": {
          "levels": [
            {
              "name": "The package's people, held to the hospitals' data rules"
            },
            {
              "name": "given every patient file"
            }
          ]
        },
        "filePath": "test/data-rules.test.ts"
      },
      {
        "name": "holds no record id at both hospitals",
        "status": "passed",
        "duration": 1,
        "suite": [
          "The package's people, held to the hospitals' data rules",
          "given every patient file"
        ],
        "extra": {
          "levels": [
            {
              "name": "The package's people, held to the hospitals' data rules"
            },
            {
              "name": "given every patient file"
            }
          ]
        },
        "filePath": "test/data-rules.test.ts"
      },
      {
        "name": "holds only the types its hospital serves",
        "status": "passed",
        "duration": 1,
        "suite": [
          "The package's people, held to the hospitals' data rules",
          "given every patient file"
        ],
        "extra": {
          "levels": [
            {
              "name": "The package's people, held to the hospitals' data rules"
            },
            {
              "name": "given every patient file"
            }
          ]
        },
        "filePath": "test/data-rules.test.ts"
      },
      {
        "name": "gives each Observation exactly one of the categories the hospitals search by",
        "status": "passed",
        "duration": 6,
        "suite": [
          "The package's people, held to the hospitals' data rules",
          "given every patient file"
        ],
        "extra": {
          "levels": [
            {
              "name": "The package's people, held to the hospitals' data rules"
            },
            {
              "name": "given every patient file"
            }
          ]
        },
        "filePath": "test/data-rules.test.ts"
      },
      {
        "name": "keeps addresses and telecoms off every record but the Patient",
        "status": "passed",
        "duration": 1,
        "suite": [
          "The package's people, held to the hospitals' data rules",
          "given every patient file"
        ],
        "extra": {
          "levels": [
            {
              "name": "The package's people, held to the hospitals' data rules"
            },
            {
              "name": "given every patient file"
            }
          ]
        },
        "filePath": "test/data-rules.test.ts"
      },
      {
        "name": "resolves every reference inside the patient's own file",
        "status": "passed",
        "duration": 28,
        "suite": [
          "The package's people, held to the hospitals' data rules",
          "given every patient file"
        ],
        "extra": {
          "levels": [
            {
              "name": "The package's people, held to the hospitals' data rules"
            },
            {
              "name": "given every patient file"
            }
          ]
        },
        "filePath": "test/data-rules.test.ts"
      },
      {
        "name": "names only the hospital as provider, location, performer or custodian, practitioners apart",
        "status": "passed",
        "duration": 2,
        "suite": [
          "The package's people, held to the hospitals' data rules",
          "given every patient file"
        ],
        "extra": {
          "levels": [
            {
              "name": "The package's people, held to the hospitals' data rules"
            },
            {
              "name": "given every patient file"
            }
          ]
        },
        "filePath": "test/data-rules.test.ts"
      },
      {
        "name": "holds at least two people at both hospitals",
        "status": "passed",
        "duration": 11,
        "suite": [
          "The package's people, held to the hospitals' data rules",
          "given every patient file"
        ],
        "extra": {
          "levels": [
            {
              "name": "The package's people, held to the hospitals' data rules"
            },
            {
              "name": "given every patient file"
            }
          ]
        },
        "filePath": "test/data-rules.test.ts"
      },
      {
        "name": "names no provider, payer or address that `synthea/removed.json` lists",
        "status": "passed",
        "duration": 62,
        "suite": [
          "The package's people, held to the hospitals' data rules",
          "given a generated patient's file"
        ],
        "extra": {
          "levels": [
            {
              "name": "The package's people, held to the hospitals' data rules"
            },
            {
              "name": "given a generated patient's file"
            }
          ]
        },
        "filePath": "test/data-rules.test.ts"
      },
      {
        "name": "carries no `urn:uuid:` reference and no Synthea URL",
        "status": "passed",
        "duration": 38,
        "suite": [
          "The package's people, held to the hospitals' data rules",
          "given a generated patient's file"
        ],
        "extra": {
          "levels": [
            {
              "name": "The package's people, held to the hospitals' data rules"
            },
            {
              "name": "given a generated patient's file"
            }
          ]
        },
        "filePath": "test/data-rules.test.ts"
      },
      {
        "name": "is a `history` file, one of four",
        "status": "passed",
        "duration": 0,
        "suite": [
          "The package's people, held to the hospitals' data rules",
          "given a generated patient's file"
        ],
        "extra": {
          "levels": [
            {
              "name": "The package's people, held to the hospitals' data rules"
            },
            {
              "name": "given a generated patient's file"
            }
          ]
        },
        "filePath": "test/data-rules.test.ts"
      },
      {
        "name": "gives a record at most two versions, none recorded before the Patient's",
        "status": "passed",
        "duration": 4,
        "suite": [
          "The package's people, held to the hospitals' data rules",
          "given a generated patient's file"
        ],
        "extra": {
          "levels": [
            {
              "name": "The package's people, held to the hospitals' data rules"
            },
            {
              "name": "given a generated patient's file"
            }
          ]
        },
        "filePath": "test/data-rules.test.ts"
      },
      {
        "name": "gives a second version only to a MedicationRequest or a Condition",
        "status": "passed",
        "duration": 1,
        "suite": [
          "The package's people, held to the hospitals' data rules",
          "given a generated patient's file"
        ],
        "extra": {
          "levels": [
            {
              "name": "The package's people, held to the hospitals' data rules"
            },
            {
              "name": "given a generated patient's file"
            }
          ]
        },
        "filePath": "test/data-rules.test.ts"
      },
      {
        "name": "holds a DiagnosticReport and a DocumentReference with their text",
        "status": "passed",
        "duration": 0,
        "suite": [
          "The package's people, held to the hospitals' data rules",
          "given a generated patient's file"
        ],
        "extra": {
          "levels": [
            {
              "name": "The package's people, held to the hospitals' data rules"
            },
            {
              "name": "given a generated patient's file"
            }
          ]
        },
        "filePath": "test/data-rules.test.ts"
      },
      {
        "name": "matches `generatedPerson()` for each person it chooses",
        "status": "passed",
        "duration": 21,
        "suite": [
          "Tripwire: the generated people as npm run synthea writes them",
          "given `synthea/people.json`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Tripwire: the generated people as npm run synthea writes them"
            },
            {
              "name": "given `synthea/people.json`"
            }
          ]
        },
        "filePath": "test/data-rules.test.ts"
      },
      {
        "name": "lists the hospitals it gives each person, in its order",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Tripwire: the generated people as npm run synthea writes them",
          "given `synthea/people.json`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Tripwire: the generated people as npm run synthea writes them"
            },
            {
              "name": "given `synthea/people.json`"
            }
          ]
        },
        "filePath": "test/data-rules.test.ts"
      },
      {
        "name": "holds no generated person it does not choose",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Tripwire: the generated people as npm run synthea writes them",
          "given `synthea/people.json`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Tripwire: the generated people as npm run synthea writes them"
            },
            {
              "name": "given `synthea/people.json`"
            }
          ]
        },
        "filePath": "test/data-rules.test.ts"
      },
      {
        "name": "returns Cascade North with its nine patients",
        "status": "passed",
        "duration": 1,
        "suite": [
          "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
          "loadHospitals()"
        ],
        "extra": {
          "levels": [
            {
              "name": "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
              "description": "The package carries two demo hospitals, Cascade North and Cascade South, and the made-up people who are patients there: hand-written ones, five stories, and three generated by Synthea. A test signs in as one of them by the patient id listed here."
            },
            {
              "name": "loadHospitals()"
            }
          ]
        },
        "filePath": "test/data.test.ts"
      },
      {
        "name": "returns Cascade South with its three patients",
        "status": "passed",
        "duration": 0,
        "suite": [
          "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
          "loadHospitals()"
        ],
        "extra": {
          "levels": [
            {
              "name": "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
              "description": "The package carries two demo hospitals, Cascade North and Cascade South, and the made-up people who are patients there: hand-written ones, five stories, and three generated by Synthea. A test signs in as one of them by the patient id listed here."
            },
            {
              "name": "loadHospitals()"
            }
          ]
        },
        "filePath": "test/data.test.ts"
      },
      {
        "name": "holds a source at each hospital",
        "status": "passed",
        "duration": 0,
        "suite": [
          "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
          "given Rowan Ellery Marsh"
        ],
        "extra": {
          "levels": [
            {
              "name": "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
              "description": "The package carries two demo hospitals, Cascade North and Cascade South, and the made-up people who are patients there: hand-written ones, five stories, and three generated by Synthea. A test signs in as one of them by the patient id listed here."
            },
            {
              "name": "given Rowan Ellery Marsh"
            }
          ]
        },
        "filePath": "test/data.test.ts"
      },
      {
        "name": "serves the person under each hospital's own patient id",
        "status": "passed",
        "duration": 0,
        "suite": [
          "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
          "given Rowan Ellery Marsh"
        ],
        "extra": {
          "levels": [
            {
              "name": "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
              "description": "The package carries two demo hospitals, Cascade North and Cascade South, and the made-up people who are patients there: hand-written ones, five stories, and three generated by Synthea. A test signs in as one of them by the patient id listed here."
            },
            {
              "name": "given Rowan Ellery Marsh"
            }
          ]
        },
        "filePath": "test/data.test.ts"
      },
      {
        "name": "serves at a hospital the file that is the person's source there",
        "status": "passed",
        "duration": 0,
        "suite": [
          "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
          "given Rowan Ellery Marsh"
        ],
        "extra": {
          "levels": [
            {
              "name": "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
              "description": "The package carries two demo hospitals, Cascade North and Cascade South, and the made-up people who are patients there: hand-written ones, five stories, and three generated by Synthea. A test signs in as one of them by the patient id listed here."
            },
            {
              "name": "given Rowan Ellery Marsh"
            }
          ]
        },
        "filePath": "test/data.test.ts"
      },
      {
        "name": "returns five stories, each naming a patient Cascade North holds",
        "status": "passed",
        "duration": 0,
        "suite": [
          "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
          "loadStories()"
        ],
        "extra": {
          "levels": [
            {
              "name": "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
              "description": "The package carries two demo hospitals, Cascade North and Cascade South, and the made-up people who are patients there: hand-written ones, five stories, and three generated by Synthea. A test signs in as one of them by the patient id listed here."
            },
            {
              "name": "loadStories()"
            }
          ]
        },
        "filePath": "test/data.test.ts"
      },
      {
        "name": "gives one story the path of a C-CDA document that is there",
        "status": "passed",
        "duration": 3,
        "suite": [
          "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
          "loadStories()"
        ],
        "extra": {
          "levels": [
            {
              "name": "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
              "description": "The package carries two demo hospitals, Cascade North and Cascade South, and the made-up people who are patients there: hand-written ones, five stories, and three generated by Synthea. A test signs in as one of them by the patient id listed here."
            },
            {
              "name": "loadStories()"
            }
          ]
        },
        "filePath": "test/data.test.ts"
      },
      {
        "name": "holds a retired ICD-10-CM code and its replacement, the retired one recorded first",
        "status": "passed",
        "duration": 1,
        "suite": [
          "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
          "given the codes the reference tables join"
        ],
        "extra": {
          "levels": [
            {
              "name": "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
              "description": "The package carries two demo hospitals, Cascade North and Cascade South, and the made-up people who are patients there: hand-written ones, five stories, and three generated by Synthea. A test signs in as one of them by the patient id listed here."
            },
            {
              "name": "given the codes the reference tables join"
            }
          ]
        },
        "filePath": "test/data.test.ts"
      },
      {
        "name": "holds an immunization under CVX 154",
        "status": "passed",
        "duration": 0,
        "suite": [
          "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
          "given the codes the reference tables join"
        ],
        "extra": {
          "levels": [
            {
              "name": "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
              "description": "The package carries two demo hospitals, Cascade North and Cascade South, and the made-up people who are patients there: hand-written ones, five stories, and three generated by Synthea. A test signs in as one of them by the patient id listed here."
            },
            {
              "name": "given the codes the reference tables join"
            }
          ]
        },
        "filePath": "test/data.test.ts"
      },
      {
        "name": "holds two HDL results under two LOINC codes, 2086-7 before 2085-9",
        "status": "passed",
        "duration": 0,
        "suite": [
          "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
          "given the codes the reference tables join"
        ],
        "extra": {
          "levels": [
            {
              "name": "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
              "description": "The package carries two demo hospitals, Cascade North and Cascade South, and the made-up people who are patients there: hand-written ones, five stories, and three generated by Synthea. A test signs in as one of them by the patient id listed here."
            },
            {
              "name": "given the codes the reference tables join"
            }
          ]
        },
        "filePath": "test/data.test.ts"
      },
      {
        "name": "holds a brand at North and its generic at South",
        "status": "passed",
        "duration": 0,
        "suite": [
          "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
          "given the codes the reference tables join"
        ],
        "extra": {
          "levels": [
            {
              "name": "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
              "description": "The package carries two demo hospitals, Cascade North and Cascade South, and the made-up people who are patients there: hand-written ones, five stories, and three generated by Synthea. A test signs in as one of them by the patient id listed here."
            },
            {
              "name": "given the codes the reference tables join"
            }
          ]
        },
        "filePath": "test/data.test.ts"
      },
      {
        "name": "holds an allergy at each hospital, under RxNorm 723 and 308191",
        "status": "passed",
        "duration": 0,
        "suite": [
          "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
          "given the codes the reference tables join"
        ],
        "extra": {
          "levels": [
            {
              "name": "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
              "description": "The package carries two demo hospitals, Cascade North and Cascade South, and the made-up people who are patients there: hand-written ones, five stories, and three generated by Synthea. A test signs in as one of them by the patient id listed here."
            },
            {
              "name": "given the codes the reference tables join"
            }
          ]
        },
        "filePath": "test/data.test.ts"
      },
      {
        "name": "holds one medicine at two strengths, the 10 mg order before the 20 mg",
        "status": "passed",
        "duration": 0,
        "suite": [
          "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
          "given the codes the reference tables join"
        ],
        "extra": {
          "levels": [
            {
              "name": "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
              "description": "The package carries two demo hospitals, Cascade North and Cascade South, and the made-up people who are patients there: hand-written ones, five stories, and three generated by Synthea. A test signs in as one of them by the patient id listed here."
            },
            {
              "name": "given the codes the reference tables join"
            }
          ]
        },
        "filePath": "test/data.test.ts"
      },
      {
        "name": "holds the brand, the generic and the 20 mg order as active",
        "status": "passed",
        "duration": 0,
        "suite": [
          "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
          "given the codes the reference tables join"
        ],
        "extra": {
          "levels": [
            {
              "name": "People to sign in as · loadHospitals(), loadPeople(), loadStories()",
              "description": "The package carries two demo hospitals, Cascade North and Cascade South, and the made-up people who are patients there: hand-written ones, five stories, and three generated by Synthea. A test signs in as one of them by the patient id listed here."
            },
            {
              "name": "given the codes the reference tables join"
            }
          ]
        },
        "filePath": "test/data.test.ts"
      },
      {
        "name": "returns each record's version current at `asOf`, a deleted record left out",
        "status": "passed",
        "duration": 5,
        "suite": [
          "Exporting a patient's records as a file · exportCollection()",
          "exportCollection(hospital, patient, asOf)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Exporting a patient's records as a file · exportCollection()",
              "description": "`exportCollection()` gives a patient's records as they stood on a date as one `collection` Bundle, each `fullUrl` the hospital's own. The file reads as what a pull of that hospital on that date would have brought."
            },
            {
              "name": "exportCollection(hospital, patient, asOf)"
            }
          ]
        },
        "filePath": "test/export.test.ts"
      },
      {
        "name": "returns each record's latest version when no `asOf` is given",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Exporting a patient's records as a file · exportCollection()",
          "exportCollection(hospital, patient, asOf)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Exporting a patient's records as a file · exportCollection()",
              "description": "`exportCollection()` gives a patient's records as they stood on a date as one `collection` Bundle, each `fullUrl` the hospital's own. The file reads as what a pull of that hospital on that date would have brought."
            },
            {
              "name": "exportCollection(hospital, patient, asOf)"
            }
          ]
        },
        "filePath": "test/export.test.ts"
      },
      {
        "name": "addresses each record at the hospital's FHIR base",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Exporting a patient's records as a file · exportCollection()",
          "exportCollection(hospital, patient, asOf)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Exporting a patient's records as a file · exportCollection()",
              "description": "`exportCollection()` gives a patient's records as they stood on a date as one `collection` Bundle, each `fullUrl` the hospital's own. The file reads as what a pull of that hospital on that date would have brought."
            },
            {
              "name": "exportCollection(hospital, patient, asOf)"
            }
          ]
        },
        "filePath": "test/export.test.ts"
      },
      {
        "name": "throws `HospitalDataError` for a patient the hospital does not hold",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Exporting a patient's records as a file · exportCollection()",
          "exportCollection(hospital, patient, asOf)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Exporting a patient's records as a file · exportCollection()",
              "description": "`exportCollection()` gives a patient's records as they stood on a date as one `collection` Bundle, each `fullUrl` the hospital's own. The file reads as what a pull of that hospital on that date would have brought."
            },
            {
              "name": "exportCollection(hospital, patient, asOf)"
            }
          ]
        },
        "filePath": "test/export.test.ts"
      },
      {
        "name": "throws `HospitalDataError` for a patient made after `asOf`",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Exporting a patient's records as a file · exportCollection()",
          "exportCollection(hospital, patient, asOf)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Exporting a patient's records as a file · exportCollection()",
              "description": "`exportCollection()` gives a patient's records as they stood on a date as one `collection` Bundle, each `fullUrl` the hospital's own. The file reads as what a pull of that hospital on that date would have brought."
            },
            {
              "name": "exportCollection(hospital, patient, asOf)"
            }
          ]
        },
        "filePath": "test/export.test.ts"
      },
      {
        "name": "throws `HospitalDataError` for a patient who is deleted",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Exporting a patient's records as a file · exportCollection()",
          "exportCollection(hospital, patient, asOf)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Exporting a patient's records as a file · exportCollection()",
              "description": "`exportCollection()` gives a patient's records as they stood on a date as one `collection` Bundle, each `fullUrl` the hospital's own. The file reads as what a pull of that hospital on that date would have brought."
            },
            {
              "name": "exportCollection(hospital, patient, asOf)"
            }
          ]
        },
        "filePath": "test/export.test.ts"
      },
      {
        "name": "throws `HospitalDataError` for an `asOf` that is not an instant",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Exporting a patient's records as a file · exportCollection()",
          "exportCollection(hospital, patient, asOf)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Exporting a patient's records as a file · exportCollection()",
              "description": "`exportCollection()` gives a patient's records as they stood on a date as one `collection` Bundle, each `fullUrl` the hospital's own. The file reads as what a pull of that hospital on that date would have brought."
            },
            {
              "name": "exportCollection(hospital, patient, asOf)"
            }
          ]
        },
        "filePath": "test/export.test.ts"
      },
      {
        "name": "answers 404 before the record's first version",
        "status": "passed",
        "duration": 6,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when a record is read"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when a record is read"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "serves the version current on the date",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when a record is read"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when a record is read"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "serves a version from the instant it was recorded",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when a record is read"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when a record is read"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "serves the latest version after the record's last change",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when a record is read"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when a record is read"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "serves the latest version when no date is given",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when a record is read"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when a record is read"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "answers 410 for a record deleted by the date",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when a record is read"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when a record is read"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "returns each record's version current on the date",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when a patient's records are searched"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when a patient's records are searched"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "omits a record deleted by the date",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when a patient's records are searched"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when a patient's records are searched"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "omits a record made after the date",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when a patient's records are searched"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when a patient's records are searched"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "counts the records there on the date in `total`",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when a patient's records are searched"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when a patient's records are searched"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "keeps the date out of the link to the next page",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when a patient's records are searched"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when a patient's records are searched"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "serves the next page as of the same date",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when a patient's records are searched"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when a patient's records are searched"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "serves a version recorded by the date",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when one version is read"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when one version is read"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "answers 404 for a version recorded after the date",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when one version is read"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when one version is read"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "answers 404 for a version the record never had",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when one version is read"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when one version is read"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "answers 410 for the version that is a deletion",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when one version is read"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when one version is read"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "lists the record's versions newest first",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when a record's history is read"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when a record's history is read"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "lists only the versions recorded by the date",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when a record's history is read"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when a record's history is read"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "lists a deletion as an entry with no resource",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when a record's history is read"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when a record's history is read"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "lists a record made again after its deletion as made, not updated",
        "status": "passed",
        "duration": 5,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when a record's history is read"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when a record's history is read"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "answers 404 for a record that is not there on the date",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when a record's history is read"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when a record's history is read"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "answers 404 `not-supported` for a type's history, saying how a history is read",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when a record's history is read"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when a record's history is read"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "answers 404 `not-supported` for the whole hospital's history",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when a record's history is read"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when a record's history is read"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "returns the versions recorded at or after an instant",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "with `_since`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "with `_since`"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "answers 400 for a value that is not an instant",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "with `_since`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "with `_since`"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "returns every version current at some time in a year",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "with `_at`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "with `_at`"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "returns the one version current through a year before the change",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "with `_at`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "with `_at`"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "returns the new version at the instant of the change",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "with `_at`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "with `_at`"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "returns the old version one second before the change",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "with `_at`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "with `_at`"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "returns the version current on a day",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "with `_at`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "with `_at`"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "narrows the versions by `_since` too when both are given",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "with `_at`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "with `_at`"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "answers 400 for a date that does not exist",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "with `_at`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "with `_at`"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "says the date the records stand at",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when the sign-in page is shown"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when the sign-in page is shown"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "lists only the patients at the hospital on the date",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when the sign-in page is shown"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when the sign-in page is shown"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "shows no date and lists every patient when none is given",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when the sign-in page is shown"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when the sign-in page is shown"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "redirects with `access_denied` when that patient is picked",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "given a patient who is not at the hospital on the date"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "given a patient who is not at the hospital on the date"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "answers 401 for a token naming a patient made after the date",
        "status": "passed",
        "duration": 4,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "given a patient who is not at the hospital on the date"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "given a patient who is not at the hospital on the date"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "answers 401 for a token naming a patient deleted by the date",
        "status": "passed",
        "duration": 4,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "given a patient who is not at the hospital on the date"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "given a patient who is not at the hospital on the date"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "throws for that patient as `autoApprove`",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "given a patient who is not at the hospital on the date"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "given a patient who is not at the hospital on the date"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "throws `HospitalDataError` from `demoHospital()`",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when `asOf` is not an instant"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when `asOf` is not an instant"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "throws `HospitalDataError` from `recordsAt()`",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "when `asOf` is not an instant"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "when `asOf` is not an instant"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "returns each record of a patient file as it stood at `asOf`",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "recordsAt(bundle, asOf)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "recordsAt(bundle, asOf)"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "returns each record's versions in order of record time",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
          "versionsOf(bundle, where)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading records as they stood on a date · asOf, recordsAt(), versionsOf()",
              "description": "Given `asOf`, the world's date, a hospital answers with its records as they stood then: each record's latest version recorded at or before it. A test pulls one patient at two dates and sees what changed between them."
            },
            {
              "name": "versionsOf(bundle, where)"
            }
          ]
        },
        "filePath": "test/history.test.ts"
      },
      {
        "name": "throws for an `autoApprove` patient the hospital does not hold",
        "status": "passed",
        "duration": 6,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "demoHospital(options)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "demoHospital(options)"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "throws when a request is answered by a hospital whose `key`, the secret its tokens are signed with, is empty",
        "status": "passed",
        "duration": 28,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "demoHospital(options)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "demoHospital(options)"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "names the hospital's FHIR base as the issuer",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when a client reads discovery"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when a client reads discovery"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "offers S256 as the only PKCE method",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when a client reads discovery"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when a client reads discovery"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "places the sign-in page at `<FHIR base>/authorize`",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when a client reads discovery"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when a client reads discovery"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "redirects to the redirect URI with a code and the client's `state`, showing no page",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "with `autoApprove`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "with `autoApprove`"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "issues a Bearer token for the approved patient, good for an hour",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "with `autoApprove`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "with `autoApprove`"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "exchanges a code that another instance of the hospital issued",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "with `autoApprove`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "with `autoApprove`"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "lists every patient of the hospital, family name first, in order of family name",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the sign-in page is shown"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the sign-in page is shown"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "names the app by its client id",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the sign-in page is shown"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the sign-in page is shown"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "says each scope the app asks for in words",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the sign-in page is shown"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the sign-in page is shown"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "lists a scope it has no words for once, as written",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the sign-in page is shown"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the sign-in page is shown"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "omits the list of scopes when the app asks for none",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the sign-in page is shown"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the sign-in page is shown"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "marks each patient choice `required`",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the sign-in page is shown"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the sign-in page is shown"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "marks Cancel `formnovalidate`",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the sign-in page is shown"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the sign-in page is shown"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "preselects the patient whose person id is the `login_hint`",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the sign-in page is shown"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the sign-in page is shown"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "preselects the patient whose name is the `login_hint`, in either order of words",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the sign-in page is shown"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the sign-in page is shown"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "preselects no one for any other `login_hint`",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the sign-in page is shown"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the sign-in page is shown"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "redirects with a code for the patient picked",
        "status": "passed",
        "duration": 21,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the patient answers the page"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the patient answers the page"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "redirects with `error=access_denied`, the `state` and no code when the patient cancels",
        "status": "passed",
        "duration": 6,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the patient answers the page"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the patient answers the page"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "redirects with `invalid_request` for no `code_challenge`",
        "status": "passed",
        "duration": 7,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the authorize request is wrong"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the authorize request is wrong"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "redirects with `invalid_request` for the `plain` challenge method",
        "status": "passed",
        "duration": 6,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the authorize request is wrong"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the authorize request is wrong"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "redirects with `invalid_request` for a challenge method it does not know",
        "status": "passed",
        "duration": 9,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the authorize request is wrong"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the authorize request is wrong"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "redirects with `invalid_request` for an `aud` that is another hospital's FHIR base",
        "status": "passed",
        "duration": 10,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the authorize request is wrong"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the authorize request is wrong"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 400 with no redirect for no `redirect_uri`",
        "status": "passed",
        "duration": 6,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the authorize request is wrong"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the authorize request is wrong"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 400 with no redirect for no `client_id`",
        "status": "passed",
        "duration": 6,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the authorize request is wrong"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the authorize request is wrong"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "redirects with `access_denied` for a patient the hospital does not hold",
        "status": "passed",
        "duration": 6,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the authorize request is wrong"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the authorize request is wrong"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 400 `invalid_grant` for a `code_verifier` that is not the challenge's",
        "status": "passed",
        "duration": 8,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the token request is wrong"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the token request is wrong"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 400 `invalid_grant` for a code it did not issue",
        "status": "passed",
        "duration": 8,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the token request is wrong"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the token request is wrong"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 400 `invalid_grant` for a code older than five minutes",
        "status": "passed",
        "duration": 7,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the token request is wrong"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the token request is wrong"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 400 `invalid_grant` for another `redirect_uri` than the code's",
        "status": "passed",
        "duration": 7,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the token request is wrong"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the token request is wrong"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 400 `invalid_grant` for another `client_id` than the code's",
        "status": "passed",
        "duration": 9,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the token request is wrong"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the token request is wrong"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 400 `invalid_request` for no `code_verifier`",
        "status": "passed",
        "duration": 9,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the token request is wrong"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the token request is wrong"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 400 `invalid_request` for no `grant_type`",
        "status": "passed",
        "duration": 9,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the token request is wrong"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the token request is wrong"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 400 `unsupported_grant_type` for a grant that is not `authorization_code`",
        "status": "passed",
        "duration": 9,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when the token request is wrong"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when the token request is wrong"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 405 with `Allow: POST` for a GET of the token endpoint",
        "status": "passed",
        "duration": 7,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when a request uses the wrong method"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when a request uses the wrong method"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 405 with `Allow: GET` for a POST to discovery",
        "status": "passed",
        "duration": 5,
        "suite": [
          "Signing a patient in to a demo hospital · demoHospital()",
          "when a request uses the wrong method"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing a patient in to a demo hospital · demoHospital()",
              "description": "`demoHospital()` makes a demo hospital: one function from a `Request` to a `Response` that answers as a hospital's SMART on FHIR server does. An app signs a patient in to it as it would to a real one: discovery, the sign-in page, then the token exchange."
            },
            {
              "name": "when a request uses the wrong method"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "returns every record of the patient across its searches and the read of the Patient",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "when a client searches a patient's records"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "when a client searches a patient's records"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "returns no record of another patient or of another hospital",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "when a client searches a patient's records"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "when a client searches a patient's records"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers each page as a `searchset` Bundle whose every `fullUrl` is at the FHIR base",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "when a client searches a patient's records"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "when a client searches a patient's records"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "pages a search by the hospital's `pageSize`, each page linking the next",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "when a client searches a patient's records"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "when a client searches a patient's records"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "omits a record the hospital lists in `hiddenFromSearch`",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "when a client searches a patient's records"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "when a client searches a patient's records"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "serves a record hidden from search when it is read by its id",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "when a client searches a patient's records"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "when a client searches a patient's records"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "takes `category` as a code, as `system|code`, or as a list joined by commas",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "when a client searches a patient's records"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "when a client searches a patient's records"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "takes `patient` as an id or as `Patient/<id>`",
        "status": "passed",
        "duration": 9,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "when a client searches a patient's records"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "when a client searches a patient's records"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "names `patient` as a search parameter of every type it searches, in `metadata`",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "when a client searches a patient's records"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "when a client searches a patient's records"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "serves a person at each hospital as that hospital's own patient",
        "status": "passed",
        "duration": 20,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "with two hospitals"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "with two hospitals"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 401 for a token another hospital issued",
        "status": "passed",
        "duration": 21,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "with two hospitals"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "with two hospitals"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "serves a search and a read under `patient/Observation.read`",
        "status": "passed",
        "duration": 11,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "given a token's scopes"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "given a token's scopes"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "serves a record's history under `patient/*.*`",
        "status": "passed",
        "duration": 7,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "given a token's scopes"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "given a token's scopes"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "serves a search under `patient/Observation.s`",
        "status": "passed",
        "duration": 8,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "given a token's scopes"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "given a token's scopes"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 403 for a search of a type the scopes do not cover",
        "status": "passed",
        "duration": 6,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "given a token's scopes"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "given a token's scopes"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 403 for a read under no scope",
        "status": "passed",
        "duration": 7,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "given a token's scopes"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "given a token's scopes"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 403 for a read under a scope that grants no read",
        "status": "passed",
        "duration": 25,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "given a token's scopes"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "given a token's scopes"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 401 `login` with a `Bearer` challenge for no token",
        "status": "passed",
        "duration": 12,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "when a request is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "when a request is refused"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 401 `login` with a `Bearer` challenge for a token it cannot read",
        "status": "passed",
        "duration": 6,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "when a request is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "when a request is refused"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 401 `login` with a `Bearer` challenge for a code sent as a token",
        "status": "passed",
        "duration": 7,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "when a request is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "when a request is refused"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 401 `login` with a `Bearer` challenge for a token older than an hour",
        "status": "passed",
        "duration": 8,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "when a request is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "when a request is refused"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 403 `forbidden` for a search of another patient",
        "status": "passed",
        "duration": 4,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "when a request is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "when a request is refused"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 400 `required` for a search with no `patient`",
        "status": "passed",
        "duration": 5,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "when a request is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "when a request is refused"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 400 `invalid` for a `_page` it cannot read",
        "status": "passed",
        "duration": 5,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "when a request is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "when a request is refused"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 404 `not-found` for another patient's record",
        "status": "passed",
        "duration": 4,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "when a request is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "when a request is refused"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 404 `not-found` for an id it does not hold",
        "status": "passed",
        "duration": 4,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "when a request is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "when a request is refused"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 404 `not-found` for a version of another patient's record",
        "status": "passed",
        "duration": 5,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "when a request is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "when a request is refused"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 404 `not-found` for the history of another patient's record",
        "status": "passed",
        "duration": 6,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "when a request is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "when a request is refused"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 404 `not-found` for a type the hospital does not serve",
        "status": "passed",
        "duration": 5,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "when a request is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "when a request is refused"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers 404 `not-found` for a search of Patient",
        "status": "passed",
        "duration": 6,
        "suite": [
          "Reading a patient's records from a demo hospital · demoHospital()",
          "when a request is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Reading a patient's records from a demo hospital · demoHospital()",
              "description": "With a token, a client searches a patient's records one type at a time, a page at a time, or reads one by its id. The hospital serves only the token's patient, and only what the token's scopes cover."
            },
            {
              "name": "when a request is refused"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "issues a token that reads the patient's record",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making a sign-in or a request fail on purpose · simulate_error",
          "given no `simulate_error`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making a sign-in or a request fail on purpose · simulate_error",
              "description": "An app tests its error handling by adding `simulate_error=<name>` to the authorize request, or by picking a failure on the sign-in page. Each name fails one later step the way the launcher fails it."
            },
            {
              "name": "given no `simulate_error`"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers the token exchange 401 `invalid_client`",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making a sign-in or a request fail on purpose · simulate_error",
          "given `token_invalid_token`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making a sign-in or a request fail on purpose · simulate_error",
              "description": "An app tests its error handling by adding `simulate_error=<name>` to the authorize request, or by picking a failure on the sign-in page. Each name fails one later step the way the launcher fails it."
            },
            {
              "name": "given `token_invalid_token`"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "answers the token exchange 401 `invalid_scope`",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making a sign-in or a request fail on purpose · simulate_error",
          "given `token_invalid_scope`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making a sign-in or a request fail on purpose · simulate_error",
              "description": "An app tests its error handling by adding `simulate_error=<name>` to the authorize request, or by picking a failure on the sign-in page. Each name fails one later step the way the launcher fails it."
            },
            {
              "name": "given `token_invalid_scope`"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "issues a token that every record request answers 401 `invalid_token` for",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making a sign-in or a request fail on purpose · simulate_error",
          "given `request_invalid_token`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making a sign-in or a request fail on purpose · simulate_error",
              "description": "An app tests its error handling by adding `simulate_error=<name>` to the authorize request, or by picking a failure on the sign-in page. Each name fails one later step the way the launcher fails it."
            },
            {
              "name": "given `request_invalid_token`"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "says `sim_error` beside the token it issues",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making a sign-in or a request fail on purpose · simulate_error",
          "given `request_invalid_token`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making a sign-in or a request fail on purpose · simulate_error",
              "description": "An app tests its error handling by adding `simulate_error=<name>` to the authorize request, or by picking a failure on the sign-in page. Each name fails one later step the way the launcher fails it."
            },
            {
              "name": "given `request_invalid_token`"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "keeps failing when a record request passes an empty `simulate_error`",
        "status": "passed",
        "duration": 4,
        "suite": [
          "Making a sign-in or a request fail on purpose · simulate_error",
          "given `request_invalid_token`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making a sign-in or a request fail on purpose · simulate_error",
              "description": "An app tests its error handling by adding `simulate_error=<name>` to the authorize request, or by picking a failure on the sign-in page. Each name fails one later step the way the launcher fails it."
            },
            {
              "name": "given `request_invalid_token`"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "issues a token that every record request answers 401 \"The access token expired\" for",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making a sign-in or a request fail on purpose · simulate_error",
          "given `request_expired_token`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making a sign-in or a request fail on purpose · simulate_error",
              "description": "An app tests its error handling by adding `simulate_error=<name>` to the authorize request, or by picking a failure on the sign-in page. Each name fails one later step the way the launcher fails it."
            },
            {
              "name": "given `request_expired_token`"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "redirects with `invalid_request` and the client's `state`",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making a sign-in or a request fail on purpose · simulate_error",
          "given a name it does not know"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making a sign-in or a request fail on purpose · simulate_error",
              "description": "An app tests its error handling by adding `simulate_error=<name>` to the authorize request, or by picking a failure on the sign-in page. Each name fails one later step the way the launcher fails it."
            },
            {
              "name": "given a name it does not know"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "ignores a `simulate_error` posted to the token exchange",
        "status": "passed",
        "duration": 8,
        "suite": [
          "Making a sign-in or a request fail on purpose · simulate_error",
          "with `simulate_error` on a later request"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making a sign-in or a request fail on purpose · simulate_error",
              "description": "An app tests its error handling by adding `simulate_error=<name>` to the authorize request, or by picking a failure on the sign-in page. Each name fails one later step the way the launcher fails it."
            },
            {
              "name": "with `simulate_error` on a later request"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "ignores a `simulate_error` in a record request's query",
        "status": "passed",
        "duration": 10,
        "suite": [
          "Making a sign-in or a request fail on purpose · simulate_error",
          "with `simulate_error` on a later request"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making a sign-in or a request fail on purpose · simulate_error",
              "description": "An app tests its error handling by adding `simulate_error=<name>` to the authorize request, or by picking a failure on the sign-in page. Each name fails one later step the way the launcher fails it."
            },
            {
              "name": "with `simulate_error` on a later request"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "offers the four failures in a list for app developers",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making a sign-in or a request fail on purpose · simulate_error",
          "when the sign-in page is shown"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making a sign-in or a request fail on purpose · simulate_error",
              "description": "An app tests its error handling by adding `simulate_error=<name>` to the authorize request, or by picking a failure on the sign-in page. Each name fails one later step the way the launcher fails it."
            },
            {
              "name": "when the sign-in page is shown"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "preselects the failure the authorize request names",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making a sign-in or a request fail on purpose · simulate_error",
          "when the sign-in page is shown"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making a sign-in or a request fail on purpose · simulate_error",
              "description": "An app tests its error handling by adding `simulate_error=<name>` to the authorize request, or by picking a failure on the sign-in page. Each name fails one later step the way the launcher fails it."
            },
            {
              "name": "when the sign-in page is shown"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "returns the callback URL with a code when the patient allows",
        "status": "passed",
        "duration": 7,
        "suite": [
          "Signing in from a test · signInAs(), signInThrough(), answerSignIn(), pkcePair()",
          "answerSignIn(fetch, authorizeUrl, patient, decision)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing in from a test · signInAs(), signInThrough(), answerSignIn(), pkcePair()",
              "description": "What a test calls to get past the sign-in without writing the protocol out: `answerSignIn()` answers the sign-in page as a patient, and `signInAs()` does the whole sign-in and returns the token."
            },
            {
              "name": "answerSignIn(fetch, authorizeUrl, patient, decision)"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "returns the callback URL with `error=access_denied` and no code for `\"cancel\"`",
        "status": "passed",
        "duration": 6,
        "suite": [
          "Signing in from a test · signInAs(), signInThrough(), answerSignIn(), pkcePair()",
          "answerSignIn(fetch, authorizeUrl, patient, decision)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing in from a test · signInAs(), signInThrough(), answerSignIn(), pkcePair()",
              "description": "What a test calls to get past the sign-in without writing the protocol out: `answerSignIn()` answers the sign-in page as a patient, and `signInAs()` does the whole sign-in and returns the token."
            },
            {
              "name": "answerSignIn(fetch, authorizeUrl, patient, decision)"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "throws when the address gives no sign-in page",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Signing in from a test · signInAs(), signInThrough(), answerSignIn(), pkcePair()",
          "answerSignIn(fetch, authorizeUrl, patient, decision)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing in from a test · signInAs(), signInThrough(), answerSignIn(), pkcePair()",
              "description": "What a test calls to get past the sign-in without writing the protocol out: `answerSignIn()` answers the sign-in page as a patient, and `signInAs()` does the whole sign-in and returns the token."
            },
            {
              "name": "answerSignIn(fetch, authorizeUrl, patient, decision)"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "returns a token for the patient, the spent code and the hospital it built",
        "status": "passed",
        "duration": 11,
        "suite": [
          "Signing in from a test · signInAs(), signInThrough(), answerSignIn(), pkcePair()",
          "signInAs(hospital, patient, options)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing in from a test · signInAs(), signInThrough(), answerSignIn(), pkcePair()",
              "description": "What a test calls to get past the sign-in without writing the protocol out: `answerSignIn()` answers the sign-in page as a patient, and `signInAs()` does the whole sign-in and returns the token."
            },
            {
              "name": "signInAs(hospital, patient, options)"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "returns the token and the code of a sign-in made through the `fetch` given",
        "status": "passed",
        "duration": 7,
        "suite": [
          "Signing in from a test · signInAs(), signInThrough(), answerSignIn(), pkcePair()",
          "signInThrough(fetch, base, patient)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing in from a test · signInAs(), signInThrough(), answerSignIn(), pkcePair()",
              "description": "What a test calls to get past the sign-in without writing the protocol out: `answerSignIn()` answers the sign-in page as a patient, and `signInAs()` does the whole sign-in and returns the token."
            },
            {
              "name": "signInThrough(fetch, base, patient)",
              "description": "`signInAs()` builds the hospital for you; `signInThrough()` signs in to one you reach by `fetch` and `base` (its FHIR base)."
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "returns a verifier and the S256 challenge of it",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Signing in from a test · signInAs(), signInThrough(), answerSignIn(), pkcePair()",
          "pkcePair()"
        ],
        "extra": {
          "levels": [
            {
              "name": "Signing in from a test · signInAs(), signInThrough(), answerSignIn(), pkcePair()",
              "description": "What a test calls to get past the sign-in without writing the protocol out: `answerSignIn()` answers the sign-in page as a patient, and `signInAs()` does the whole sign-in and returns the token."
            },
            {
              "name": "pkcePair()"
            }
          ]
        },
        "filePath": "test/hospital.test.ts"
      },
      {
        "name": "refuses a Bundle that is neither a collection nor a history",
        "status": "passed",
        "duration": 7,
        "suite": [
          "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
          "when a patient file breaks a rule"
        ],
        "extra": {
          "levels": [
            {
              "name": "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
              "description": "A patient file is a FHIR Bundle of type `collection`, plain records, or `history`, one entry for each version. A hospital and the loader refuse a file that breaks a rule with a `HospitalDataError` whose `reason` says which, so a developer's own patient fails when it is loaded and not in the middle of a pull."
            },
            {
              "name": "when a patient file breaks a rule"
            }
          ]
        },
        "filePath": "test/patient-file.test.ts"
      },
      {
        "name": "refuses a collection that holds a record twice",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
          "when a patient file breaks a rule"
        ],
        "extra": {
          "levels": [
            {
              "name": "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
              "description": "A patient file is a FHIR Bundle of type `collection`, plain records, or `history`, one entry for each version. A hospital and the loader refuse a file that breaks a rule with a `HospitalDataError` whose `reason` says which, so a developer's own patient fails when it is loaded and not in the middle of a pull."
            },
            {
              "name": "when a patient file breaks a rule"
            }
          ]
        },
        "filePath": "test/patient-file.test.ts"
      },
      {
        "name": "refuses a history entry whose method is not POST, PUT or DELETE",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
          "when a patient file breaks a rule"
        ],
        "extra": {
          "levels": [
            {
              "name": "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
              "description": "A patient file is a FHIR Bundle of type `collection`, plain records, or `history`, one entry for each version. A hospital and the loader refuse a file that breaks a rule with a `HospitalDataError` whose `reason` says which, so a developer's own patient fails when it is loaded and not in the middle of a pull."
            },
            {
              "name": "when a patient file breaks a rule"
            }
          ]
        },
        "filePath": "test/patient-file.test.ts"
      },
      {
        "name": "refuses an entry whose `request.url` names another record",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
          "when a patient file breaks a rule"
        ],
        "extra": {
          "levels": [
            {
              "name": "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
              "description": "A patient file is a FHIR Bundle of type `collection`, plain records, or `history`, one entry for each version. A hospital and the loader refuse a file that breaks a rule with a `HospitalDataError` whose `reason` says which, so a developer's own patient fails when it is loaded and not in the middle of a pull."
            },
            {
              "name": "when a patient file breaks a rule"
            }
          ]
        },
        "filePath": "test/patient-file.test.ts"
      },
      {
        "name": "refuses a record time that is a date",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
          "when a patient file breaks a rule"
        ],
        "extra": {
          "levels": [
            {
              "name": "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
              "description": "A patient file is a FHIR Bundle of type `collection`, plain records, or `history`, one entry for each version. A hospital and the loader refuse a file that breaks a rule with a `HospitalDataError` whose `reason` says which, so a developer's own patient fails when it is loaded and not in the middle of a pull."
            },
            {
              "name": "when a patient file breaks a rule"
            }
          ]
        },
        "filePath": "test/patient-file.test.ts"
      },
      {
        "name": "refuses a record time on a day that does not exist",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
          "when a patient file breaks a rule"
        ],
        "extra": {
          "levels": [
            {
              "name": "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
              "description": "A patient file is a FHIR Bundle of type `collection`, plain records, or `history`, one entry for each version. A hospital and the loader refuse a file that breaks a rule with a `HospitalDataError` whose `reason` says which, so a developer's own patient fails when it is loaded and not in the middle of a pull."
            },
            {
              "name": "when a patient file breaks a rule"
            }
          ]
        },
        "filePath": "test/patient-file.test.ts"
      },
      {
        "name": "refuses a version with no `meta.versionId`",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
          "when a patient file breaks a rule"
        ],
        "extra": {
          "levels": [
            {
              "name": "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
              "description": "A patient file is a FHIR Bundle of type `collection`, plain records, or `history`, one entry for each version. A hospital and the loader refuse a file that breaks a rule with a `HospitalDataError` whose `reason` says which, so a developer's own patient fails when it is loaded and not in the middle of a pull."
            },
            {
              "name": "when a patient file breaks a rule"
            }
          ]
        },
        "filePath": "test/patient-file.test.ts"
      },
      {
        "name": "refuses a `meta.lastUpdated` that is not the entry's record time",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
          "when a patient file breaks a rule"
        ],
        "extra": {
          "levels": [
            {
              "name": "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
              "description": "A patient file is a FHIR Bundle of type `collection`, plain records, or `history`, one entry for each version. A hospital and the loader refuse a file that breaks a rule with a `HospitalDataError` whose `reason` says which, so a developer's own patient fails when it is loaded and not in the middle of a pull."
            },
            {
              "name": "when a patient file breaks a rule"
            }
          ]
        },
        "filePath": "test/patient-file.test.ts"
      },
      {
        "name": "refuses an etag of another version",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
          "when a patient file breaks a rule"
        ],
        "extra": {
          "levels": [
            {
              "name": "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
              "description": "A patient file is a FHIR Bundle of type `collection`, plain records, or `history`, one entry for each version. A hospital and the loader refuse a file that breaks a rule with a `HospitalDataError` whose `reason` says which, so a developer's own patient fails when it is loaded and not in the middle of a pull."
            },
            {
              "name": "when a patient file breaks a rule"
            }
          ]
        },
        "filePath": "test/patient-file.test.ts"
      },
      {
        "name": "refuses a version id used twice",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
          "when a patient file breaks a rule"
        ],
        "extra": {
          "levels": [
            {
              "name": "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
              "description": "A patient file is a FHIR Bundle of type `collection`, plain records, or `history`, one entry for each version. A hospital and the loader refuse a file that breaks a rule with a `HospitalDataError` whose `reason` says which, so a developer's own patient fails when it is loaded and not in the middle of a pull."
            },
            {
              "name": "when a patient file breaks a rule"
            }
          ]
        },
        "filePath": "test/patient-file.test.ts"
      },
      {
        "name": "refuses two versions of a record at one time",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
          "when a patient file breaks a rule"
        ],
        "extra": {
          "levels": [
            {
              "name": "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
              "description": "A patient file is a FHIR Bundle of type `collection`, plain records, or `history`, one entry for each version. A hospital and the loader refuse a file that breaks a rule with a `HospitalDataError` whose `reason` says which, so a developer's own patient fails when it is loaded and not in the middle of a pull."
            },
            {
              "name": "when a patient file breaks a rule"
            }
          ]
        },
        "filePath": "test/patient-file.test.ts"
      },
      {
        "name": "refuses a deletion with no etag",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
          "when a patient file breaks a rule"
        ],
        "extra": {
          "levels": [
            {
              "name": "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
              "description": "A patient file is a FHIR Bundle of type `collection`, plain records, or `history`, one entry for each version. A hospital and the loader refuse a file that breaks a rule with a `HospitalDataError` whose `reason` says which, so a developer's own patient fails when it is loaded and not in the middle of a pull."
            },
            {
              "name": "when a patient file breaks a rule"
            }
          ]
        },
        "filePath": "test/patient-file.test.ts"
      },
      {
        "name": "refuses a deletion that carries a resource",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
          "when a patient file breaks a rule"
        ],
        "extra": {
          "levels": [
            {
              "name": "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
              "description": "A patient file is a FHIR Bundle of type `collection`, plain records, or `history`, one entry for each version. A hospital and the loader refuse a file that breaks a rule with a `HospitalDataError` whose `reason` says which, so a developer's own patient fails when it is loaded and not in the middle of a pull."
            },
            {
              "name": "when a patient file breaks a rule"
            }
          ]
        },
        "filePath": "test/patient-file.test.ts"
      },
      {
        "name": "refuses a deletion of a record that does not exist",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
          "when a patient file breaks a rule"
        ],
        "extra": {
          "levels": [
            {
              "name": "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
              "description": "A patient file is a FHIR Bundle of type `collection`, plain records, or `history`, one entry for each version. A hospital and the loader refuse a file that breaks a rule with a `HospitalDataError` whose `reason` says which, so a developer's own patient fails when it is loaded and not in the middle of a pull."
            },
            {
              "name": "when a patient file breaks a rule"
            }
          ]
        },
        "filePath": "test/patient-file.test.ts"
      },
      {
        "name": "refuses a `fullUrl` at another base than the hospital's",
        "status": "passed",
        "duration": 6,
        "suite": [
          "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
          "when a patient file breaks a rule"
        ],
        "extra": {
          "levels": [
            {
              "name": "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
              "description": "A patient file is a FHIR Bundle of type `collection`, plain records, or `history`, one entry for each version. A hospital and the loader refuse a file that breaks a rule with a `HospitalDataError` whose `reason` says which, so a developer's own patient fails when it is loaded and not in the middle of a pull."
            },
            {
              "name": "when a patient file breaks a rule"
            }
          ]
        },
        "filePath": "test/patient-file.test.ts"
      },
      {
        "name": "refuses a record held in two patients' files",
        "status": "passed",
        "duration": 5,
        "suite": [
          "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
          "when a patient file breaks a rule"
        ],
        "extra": {
          "levels": [
            {
              "name": "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
              "description": "A patient file is a FHIR Bundle of type `collection`, plain records, or `history`, one entry for each version. A hospital and the loader refuse a file that breaks a rule with a `HospitalDataError` whose `reason` says which, so a developer's own patient fails when it is loaded and not in the middle of a pull."
            },
            {
              "name": "when a patient file breaks a rule"
            }
          ]
        },
        "filePath": "test/patient-file.test.ts"
      },
      {
        "name": "refuses a file whose Patient is not the id it is held under",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
          "when a patient file breaks a rule"
        ],
        "extra": {
          "levels": [
            {
              "name": "Checking a patient file · demoHospital(), loadHospital(), HospitalDataError",
              "description": "A patient file is a FHIR Bundle of type `collection`, plain records, or `history`, one entry for each version. A hospital and the loader refuse a file that breaks a rule with a `HospitalDataError` whose `reason` says which, so a developer's own patient fails when it is loaded and not in the middle of a pull."
            },
            {
              "name": "when a patient file breaks a rule"
            }
          ]
        },
        "filePath": "test/patient-file.test.ts"
      },
      {
        "name": "returns the hospitals root by root, each root's in order of folder name",
        "status": "passed",
        "duration": 5,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "loadHospitals(roots)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "loadHospitals(roots)"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "skips a root that is not a folder",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "loadHospitals(roots)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "loadHospitals(roots)"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "skips a file and a dot-folder beside the hospital folders",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "loadHospitals(roots)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "loadHospitals(roots)"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "ignores what a hospital folder holds beside its `hospital.json`",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "loadHospitals(roots)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "loadHospitals(roots)"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "returns the package's two hospitals when no roots are given",
        "status": "passed",
        "duration": 129,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "loadHospitals(roots)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "loadHospitals(roots)"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "returns the hospital of that id",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "loadHospital(id, roots)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "loadHospital(id, roots)"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "throws `HospitalDataError` for an id no root holds",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "loadHospital(id, roots)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "loadHospital(id, roots)"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses one id held by two roots",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a hospital folder is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a hospital folder is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a FHIR base that is on no demo host",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a hospital folder is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a hospital folder is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a folder with no `hospital.json`",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a hospital folder is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a hospital folder is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a `hospital.json` that is not JSON",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a hospital folder is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a hospital folder is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a `hospital.json` that is not an object",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a hospital folder is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a hospital folder is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a `hospital.json` with no `name`",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a hospital folder is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a hospital folder is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a `hospital.json` with no `fhirBase`",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a hospital folder is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a hospital folder is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a `hospital.json` with no `types`",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a hospital folder is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a hospital folder is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a `pageSize` that is not a whole number of 1 or more",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a hospital folder is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a hospital folder is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses an empty `key`",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a hospital folder is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a hospital folder is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a `hospital.json` with no `hiddenFromSearch`",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a hospital folder is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a hospital folder is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a `colour` that is not a string",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a hospital folder is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a hospital folder is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses `places` that are not a list of strings",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a hospital folder is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a hospital folder is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a folder named for another id than its FHIR base's",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a hospital folder is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a hospital folder is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a hospital folder that holds `patients/`",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a hospital folder is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a hospital folder is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "compares the Patient's official name, whatever other names it carries",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "given a person's sources"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "given a person's sources"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "compares every version of the Patient",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "given a person's sources"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "given a person's sources"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "skips a field the Patient leaves out",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "given a person's sources"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "given a person's sources"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "accepts a difference the person declares, where a version of the Patient shows it",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "given a person's sources"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "given a person's sources"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "accepts a difference declared at a source that also holds a C-CDA document",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "given a person's sources"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "given a person's sources"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "accepts a difference declared for a kit person at a source they have no folder for",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "given a person's sources"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "given a person's sources"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a Patient whose name differs from the person's",
        "status": "passed",
        "duration": 4,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a person is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a person is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses given names in another order",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a person is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a person is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a birth date that differs",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a person is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a person is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a gender that differs in a later version",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a person is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a person is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a declared difference the Patient does not show",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a person is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a person is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a difference declared at a source the person does not have",
        "status": "passed",
        "duration": 6,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a person is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a person is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a `fhir.json` named in another case",
        "status": "passed",
        "duration": 12,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a person is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a person is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a stray file beside a source's `fhir.json`",
        "status": "passed",
        "duration": 8,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a person is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a person is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses an empty source folder",
        "status": "passed",
        "duration": 8,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a person is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a person is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a person folder with no `person.json`",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a person is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a person is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a `person.json` that is not JSON",
        "status": "passed",
        "duration": 4,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a person is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a person is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a `person.json` with no `id`",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a person is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a person is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a `name` without family and given names",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a person is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a person is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a `birthDate` that is not `YYYY-MM-DD`",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a person is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a person is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a `gender` that is not one of FHIR's four",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a person is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a person is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses an `id` that is not the folder's name",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a person is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a person is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a source with no Patient",
        "status": "passed",
        "duration": 7,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a person is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a person is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a source with two Patients",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a person is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a person is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a source at a hospital that is not loaded",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a person is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a person is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses one person held by two roots",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a person is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a person is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses one Patient id held by two people at a hospital",
        "status": "passed",
        "duration": 7,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a person is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a person is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a `fullUrl` at another base than the hospital's",
        "status": "passed",
        "duration": 12,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "when a person is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "when a person is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "returns each story with its patient's id at the story's hospital",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "loadStories(roots)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "loadStories(roots)"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "throws `HospitalDataError` for a hospital where the person has no source",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "loadStories(roots)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "loadStories(roots)"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "throws `HospitalDataError` for a C-CDA file that is not there",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
          "loadStories(roots)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Loading hospitals and people from an app's own folders · loadHospitals(), loadHospital(), loadStories()",
              "description": "An app keeps hospitals and people of its own in folders laid out as this package's are, the roots, and loads them beside the package's or in place of them. Every load checks each person's sources against who the person is, and refuses what disagrees with a `HospitalDataError`."
            },
            {
              "name": "loadStories(roots)"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "returns the path it wrote, `people/<Patient id>/sources/<hospital>/fhir.json`",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "addPatient(app, hospital, file)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "addPatient(app, hospital, file)"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "writes a file the hospital then loads the patient from",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "addPatient(app, hospital, file)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "addPatient(app, hospital, file)"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "compiles a file with `shorthand` to a history before writing it",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "addPatient(app, hospital, file)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "addPatient(app, hospital, file)"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "writes a plain collection as it is",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "addPatient(app, hospital, file)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "addPatient(app, hospital, file)"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "writes `person.json` from the Patient's official name, birth date and gender",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "addPatient(app, hospital, file)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "addPatient(app, hospital, file)"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "leaves the `person.json` of a person already there as it is",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "addPatient(app, hospital, file)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "addPatient(app, hospital, file)"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "accepts a second source of a person who declares a difference at their first",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "addPatient(app, hospital, file)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "addPatient(app, hospital, file)"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a patient who is already at the hospital",
        "status": "passed",
        "duration": 64,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "when the file is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "when the file is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a patient who disagrees with the person already there",
        "status": "passed",
        "duration": 55,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "when the file is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "when the file is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a hospital the app does not have",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "when the file is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "when the file is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a file that cannot be read",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "when the file is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "when the file is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a file that is not JSON",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "when the file is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "when the file is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a file that is not an object",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "when the file is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "when the file is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a file that is not a Bundle",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "when the file is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "when the file is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses an entry that is not an object",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "when the file is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "when the file is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a `shorthand` that is not an object",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "when the file is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "when the file is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a file with no Patient",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "when the file is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "when the file is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a Patient id that is no folder name",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "when the file is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "when the file is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a Patient id that is a person of the package already",
        "status": "passed",
        "duration": 55,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "when the file is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "when the file is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a Patient with no birth date",
        "status": "passed",
        "duration": 48,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "when the file is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "when the file is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a record of a type the hospital does not serve",
        "status": "passed",
        "duration": 77,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "when the file is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "when the file is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "refuses a record another patient's file holds",
        "status": "passed",
        "duration": 75,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "when the file is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "when the file is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "writes nothing for a file it refuses",
        "status": "passed",
        "duration": 155,
        "suite": [
          "Adding a patient to an app's hospital · addPatient()",
          "when the file is refused"
        ],
        "extra": {
          "levels": [
            {
              "name": "Adding a patient to an app's hospital · addPatient()",
              "description": "`addPatient()` checks a patient's file as the app would load it at one of its hospitals, then writes it into the app's `people/` folder. A developer brings a patient of their own without learning the folder layout."
            },
            {
              "name": "when the file is refused"
            }
          ]
        },
        "filePath": "test/roots.test.ts"
      },
      {
        "name": "returns true for a URL on a `.demo.invalid` host",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Sending an app's requests to the demo hospitals · demoFetch(), isDemoRequest()",
          "isDemoRequest(url, options)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Sending an app's requests to the demo hospitals · demoFetch(), isDemoRequest()",
              "description": "`demoFetch()` is a `fetch` that answers a request for a demo hospital's address in the same process and passes every other request on. An app's test swaps it in for `fetch` and connects with no network."
            },
            {
              "name": "isDemoRequest(url, options)"
            }
          ]
        },
        "filePath": "test/route.test.ts"
      },
      {
        "name": "returns true for a URL under `authorizeBase`",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Sending an app's requests to the demo hospitals · demoFetch(), isDemoRequest()",
          "isDemoRequest(url, options)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Sending an app's requests to the demo hospitals · demoFetch(), isDemoRequest()",
              "description": "`demoFetch()` is a `fetch` that answers a request for a demo hospital's address in the same process and passes every other request on. An app's test swaps it in for `fetch` and connects with no network."
            },
            {
              "name": "isDemoRequest(url, options)"
            }
          ]
        },
        "filePath": "test/route.test.ts"
      },
      {
        "name": "returns false for any other URL",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Sending an app's requests to the demo hospitals · demoFetch(), isDemoRequest()",
          "isDemoRequest(url, options)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Sending an app's requests to the demo hospitals · demoFetch(), isDemoRequest()",
              "description": "`demoFetch()` is a `fetch` that answers a request for a demo hospital's address in the same process and passes every other request on. An app's test swaps it in for `fetch` and connects with no network."
            },
            {
              "name": "isDemoRequest(url, options)"
            }
          ]
        },
        "filePath": "test/route.test.ts"
      },
      {
        "name": "answers a hospital's discovery with that hospital as the issuer",
        "status": "passed",
        "duration": 21,
        "suite": [
          "Sending an app's requests to the demo hospitals · demoFetch(), isDemoRequest()",
          "demoFetch(hospitals, options)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Sending an app's requests to the demo hospitals · demoFetch(), isDemoRequest()",
              "description": "`demoFetch()` is a `fetch` that answers a request for a demo hospital's address in the same process and passes every other request on. An app's test swaps it in for `fetch` and connects with no network."
            },
            {
              "name": "demoFetch(hospitals, options)"
            }
          ]
        },
        "filePath": "test/route.test.ts"
      },
      {
        "name": "reaches a hospital's sign-in page at `<FHIR base>/authorize`",
        "status": "passed",
        "duration": 8,
        "suite": [
          "Sending an app's requests to the demo hospitals · demoFetch(), isDemoRequest()",
          "demoFetch(hospitals, options)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Sending an app's requests to the demo hospitals · demoFetch(), isDemoRequest()",
              "description": "`demoFetch()` is a `fetch` that answers a request for a demo hospital's address in the same process and passes every other request on. An app's test swaps it in for `fetch` and connects with no network."
            },
            {
              "name": "demoFetch(hospitals, options)"
            }
          ]
        },
        "filePath": "test/route.test.ts"
      },
      {
        "name": "answers 404 for a demo address no hospital is at",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Sending an app's requests to the demo hospitals · demoFetch(), isDemoRequest()",
          "demoFetch(hospitals, options)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Sending an app's requests to the demo hospitals · demoFetch(), isDemoRequest()",
              "description": "`demoFetch()` is a `fetch` that answers a request for a demo hospital's address in the same process and passes every other request on. An app's test swaps it in for `fetch` and connects with no network."
            },
            {
              "name": "demoFetch(hospitals, options)"
            }
          ]
        },
        "filePath": "test/route.test.ts"
      },
      {
        "name": "passes every other request to `fallback`",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Sending an app's requests to the demo hospitals · demoFetch(), isDemoRequest()",
          "demoFetch(hospitals, options)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Sending an app's requests to the demo hospitals · demoFetch(), isDemoRequest()",
              "description": "`demoFetch()` is a `fetch` that answers a request for a demo hospital's address in the same process and passes every other request on. An app's test swaps it in for `fetch` and connects with no network."
            },
            {
              "name": "demoFetch(hospitals, options)"
            }
          ]
        },
        "filePath": "test/route.test.ts"
      },
      {
        "name": "exposes `Retry-After` to a page on another origin",
        "status": "passed",
        "duration": 8,
        "suite": [
          "Sending an app's requests to the demo hospitals · demoFetch(), isDemoRequest()",
          "demoFetch(hospitals, options)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Sending an app's requests to the demo hospitals · demoFetch(), isDemoRequest()",
              "description": "`demoFetch()` is a `fetch` that answers a request for a demo hospital's address in the same process and passes every other request on. An app's test swaps it in for `fetch` and connects with no network."
            },
            {
              "name": "demoFetch(hospitals, options)"
            }
          ]
        },
        "filePath": "test/route.test.ts"
      },
      {
        "name": "names each hospital's sign-in page under it in discovery",
        "status": "passed",
        "duration": 13,
        "suite": [
          "Sending an app's requests to the demo hospitals · demoFetch(), isDemoRequest()",
          "with `authorizeBase`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Sending an app's requests to the demo hospitals · demoFetch(), isDemoRequest()",
              "description": "`demoFetch()` is a `fetch` that answers a request for a demo hospital's address in the same process and passes every other request on. An app's test swaps it in for `fetch` and connects with no network."
            },
            {
              "name": "with `authorizeBase`"
            }
          ]
        },
        "filePath": "test/route.test.ts"
      },
      {
        "name": "serves each hospital's sign-in page at `<authorizeBase><id>/authorize`",
        "status": "passed",
        "duration": 15,
        "suite": [
          "Sending an app's requests to the demo hospitals · demoFetch(), isDemoRequest()",
          "with `authorizeBase`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Sending an app's requests to the demo hospitals · demoFetch(), isDemoRequest()",
              "description": "`demoFetch()` is a `fetch` that answers a request for a demo hospital's address in the same process and passes every other request on. An app's test swaps it in for `fetch` and connects with no network."
            },
            {
              "name": "with `authorizeBase`"
            }
          ]
        },
        "filePath": "test/route.test.ts"
      },
      {
        "name": "answers 404 under it for an id or a page that is not there",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Sending an app's requests to the demo hospitals · demoFetch(), isDemoRequest()",
          "with `authorizeBase`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Sending an app's requests to the demo hospitals · demoFetch(), isDemoRequest()",
              "description": "`demoFetch()` is a `fetch` that answers a request for a demo hospital's address in the same process and passes every other request on. An app's test swaps it in for `fetch` and connects with no network."
            },
            {
              "name": "with `authorizeBase`"
            }
          ]
        },
        "filePath": "test/route.test.ts"
      },
      {
        "name": "passes the caller's `Content-Type` and `Accept` on to the hospital",
        "status": "passed",
        "duration": 33,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "serveDemo(hospitals, options)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "serveDemo(hospitals, options)"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "answers as of `options.asOf` from its first request",
        "status": "passed",
        "duration": 29,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "serveDemo(hospitals, options)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "serveDemo(hospitals, options)"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "returns the records the in-process `demoFetch()` returns",
        "status": "passed",
        "duration": 393,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "demoRemapFetch(origin)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "demoRemapFetch(origin)"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "names the hospital's own address in every link and `fullUrl`",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "demoRemapFetch(origin)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "demoRemapFetch(origin)"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "follows a redirect to a demo address through the listener",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "demoRemapFetch(origin)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "demoRemapFetch(origin)"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "returns a redirect unfollowed under `redirect: \"manual\"`",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "demoRemapFetch(origin)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "demoRemapFetch(origin)"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "rejects a redirect that never ends with \"too many redirects\"",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "demoRemapFetch(origin)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "demoRemapFetch(origin)"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "keeps `Authorization` on a redirect within the origin",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "demoRemapFetch(origin)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "demoRemapFetch(origin)"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "drops `Authorization` on a redirect to another host",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "demoRemapFetch(origin)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "demoRemapFetch(origin)"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "drops `Authorization` on a redirect to another port of the host",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "demoRemapFetch(origin)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "demoRemapFetch(origin)"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "names `<origin>/<id>/fhir` as the issuer in discovery",
        "status": "passed",
        "duration": 189,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when a caller has only the listener's address"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when a caller has only the listener's address"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "names the sign-in and token addresses of discovery in `metadata` too",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when a caller has only the listener's address"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when a caller has only the listener's address"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "returns the records a remapped pull returns",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when a caller has only the listener's address"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when a caller has only the listener's address"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "names the listener's address in every link and `fullUrl`",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when a caller has only the listener's address"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when a caller has only the listener's address"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "shows the sign-in page for an `aud` that is the base the caller came to",
        "status": "passed",
        "duration": 7,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when a caller has only the listener's address"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when a caller has only the listener's address"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "redirects with `invalid_request` for an `aud` that is the hospital's own base",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when a caller has only the listener's address"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when a caller has only the listener's address"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "answers at `localhost`, naming it as the issuer",
        "status": "passed",
        "duration": 5,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when the listener is asked by another name"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when the listener is asked by another name"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "answers at `host.docker.internal`",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when the listener is asked by another name"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when the listener is asked by another name"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "answers at a name given in `hosts`",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when the listener is asked by another name"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when the listener is asked by another name"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "answers at an IPv6 address",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when the listener is asked by another name"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when the listener is asked by another name"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "answers 403 for any other name",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when the listener is asked by another name"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when the listener is asked by another name"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "answers 400 for a `Host` that is no host name",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when the listener is asked by another name"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when the listener is asked by another name"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "answers 400 for a `Forwarded` host that is another hospital's than the path's",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when a request cannot be placed"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when a request cannot be placed"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "answers 400 for a `Forwarded` host that is no demo hospital's",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when a request cannot be placed"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when a request cannot be placed"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "answers 400 for a `Forwarded` request with no hospital id in its path",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when a request cannot be placed"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when a request cannot be placed"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "answers 400 for a `Forwarded` protocol that is not https",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when a request cannot be placed"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when a request cannot be placed"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "answers 400 for a target that is a whole URL",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when a request cannot be placed"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when a request cannot be placed"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "answers 400 for a target that begins with two slashes",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when a request cannot be placed"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when a request cannot be placed"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "answers 404 for a hospital it does not serve",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when a request cannot be placed"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when a request cannot be placed"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "answers 404 for a path with no hospital id",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when a request cannot be placed"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when a request cannot be placed"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "serves a `Forwarded` host that names the https port as the same host",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when a request cannot be placed"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when a request cannot be placed"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "allows any origin to read discovery, `metadata` and the records",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when a page on another origin asks"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when a page on another origin asks"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "allows any origin to post to the token endpoint, marking the answer `no-store`",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when a page on another origin asks"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when a page on another origin asks"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "answers a preflight of those with the methods and headers a client sends",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when a page on another origin asks"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when a page on another origin asks"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "allows no other origin to read the sign-in page",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when a page on another origin asks"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when a page on another origin asks"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "allows no other origin to move the world's date",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when a page on another origin asks"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when a page on another origin asks"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "sends no `Access-Control-Allow-Credentials` on any answer",
        "status": "passed",
        "duration": 13,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when a page on another origin asks"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when a page on another origin asks"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "shows no date on the sign-in page until one is set",
        "status": "passed",
        "duration": 8,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when the world's date is moved"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when the world's date is moved"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "answers the next request as of the date posted to `/world-date`",
        "status": "passed",
        "duration": 8,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when the world's date is moved"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when the world's date is moved"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "answers a token issued before the move as of the new date",
        "status": "passed",
        "duration": 26,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when the world's date is moved"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when the world's date is moved"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "answers 400 for an `asOf` that is not an instant, leaving the date",
        "status": "passed",
        "duration": 14,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when the world's date is moved"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when the world's date is moved"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "answers 403 for a post from a page on another site, leaving the date",
        "status": "passed",
        "duration": 9,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when the world's date is moved"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when the world's date is moved"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "returns to every version when `asOf` is posted empty",
        "status": "passed",
        "duration": 14,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when the world's date is moved"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when the world's date is moved"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "returns to every version on `setWorldDate(undefined)`",
        "status": "passed",
        "duration": 27,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when the world's date is moved"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when the world's date is moved"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "throws `HospitalDataError` from `setWorldDate()` for a value that is not an instant",
        "status": "passed",
        "duration": 8,
        "suite": [
          "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
          "when the world's date is moved"
        ],
        "extra": {
          "levels": [
            {
              "name": "Serving the demo hospitals at a real address · serveDemo(), demoRemapFetch()",
              "description": "`serveDemo()` starts the demo hospitals on a port of this machine, the listener, for a caller that needs a real address: a browser, a tool in another language, an app in a container. `demoRemapFetch()` is a `fetch` that sends a request for a hospital's own address to the listener."
            },
            {
              "name": "when the world's date is moved"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "prints `Listening at <origin>`",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Starting the demo hospitals from a terminal · npm run serve",
          "when it starts"
        ],
        "extra": {
          "levels": [
            {
              "name": "Starting the demo hospitals from a terminal · npm run serve",
              "description": "`npm run serve` starts the same listener in a process of its own and prints where each hospital is, for a tool outside Node such as curl or Inferno."
            },
            {
              "name": "when it starts"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "prints each hospital's base at the listener and at `host.docker.internal`",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Starting the demo hospitals from a terminal · npm run serve",
          "when it starts"
        ],
        "extra": {
          "levels": [
            {
              "name": "Starting the demo hospitals from a terminal · npm run serve",
              "description": "`npm run serve` starts the same listener in a process of its own and prints where each hospital is, for a tool outside Node such as curl or Inferno."
            },
            {
              "name": "when it starts"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "serves a hospital at the base it printed",
        "status": "passed",
        "duration": 13,
        "suite": [
          "Starting the demo hospitals from a terminal · npm run serve",
          "when it starts"
        ],
        "extra": {
          "levels": [
            {
              "name": "Starting the demo hospitals from a terminal · npm run serve",
              "description": "`npm run serve` starts the same listener in a process of its own and prints where each hospital is, for a tool outside Node such as curl or Inferno."
            },
            {
              "name": "when it starts"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "prints the usage and \"--port is a number up to 65535.\", and exits 2",
        "status": "passed",
        "duration": 68,
        "suite": [
          "Starting the demo hospitals from a terminal · npm run serve",
          "when an argument is wrong"
        ],
        "extra": {
          "levels": [
            {
              "name": "Starting the demo hospitals from a terminal · npm run serve",
              "description": "`npm run serve` starts the same listener in a process of its own and prints where each hospital is, for a tool outside Node such as curl or Inferno."
            },
            {
              "name": "when an argument is wrong"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "prints the usage and \"--as-of is an instant, as 2024-02-01T00:00:00Z.\", and exits 2",
        "status": "passed",
        "duration": 65,
        "suite": [
          "Starting the demo hospitals from a terminal · npm run serve",
          "when an argument is wrong"
        ],
        "extra": {
          "levels": [
            {
              "name": "Starting the demo hospitals from a terminal · npm run serve",
              "description": "`npm run serve` starts the same listener in a process of its own and prints where each hospital is, for a tool outside Node such as curl or Inferno."
            },
            {
              "name": "when an argument is wrong"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "writes each `Set-Cookie` of the response as a header of its own",
        "status": "passed",
        "duration": 3,
        "suite": [
          "Writing a hospital's answer to a Node response · send()",
          "send(outgoing, response)"
        ],
        "extra": {
          "levels": [
            {
              "name": "Writing a hospital's answer to a Node response · send()",
              "description": "The listener writes each answer of a hospital to a Node response with `send()`; nothing else of the package calls it."
            },
            {
              "name": "send(outgoing, response)"
            }
          ]
        },
        "filePath": "test/serve.test.ts"
      },
      {
        "name": "compiles to a `history` Bundle",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Writing a patient's changes in shorthand · addPatient(), shorthand",
          "given a collection whose entries carry `shorthand`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Writing a patient's changes in shorthand · addPatient(), shorthand",
              "description": "A patient file's history can be written short: a plain collection in which an entry says when its record began and when it stopped, as `shorthand: { active, stopped }`. `addPatient()` compiles it to the versions a hospital serves, so a developer writes two dates and not two copies of a record."
            },
            {
              "name": "given a collection whose entries carry `shorthand`"
            }
          ]
        },
        "filePath": "test/shorthand.test.ts"
      },
      {
        "name": "gives a record with `active` and `stopped` two versions, recorded on those days",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Writing a patient's changes in shorthand · addPatient(), shorthand",
          "given a collection whose entries carry `shorthand`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Writing a patient's changes in shorthand · addPatient(), shorthand",
              "description": "A patient file's history can be written short: a plain collection in which an entry says when its record began and when it stopped, as `shorthand: { active, stopped }`. `addPatient()` compiles it to the versions a hospital serves, so a developer writes two dates and not two copies of a record."
            },
            {
              "name": "given a collection whose entries carry `shorthand`"
            }
          ]
        },
        "filePath": "test/shorthand.test.ts"
      },
      {
        "name": "places a record with no `shorthand` at its own clinical date",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Writing a patient's changes in shorthand · addPatient(), shorthand",
          "given a collection whose entries carry `shorthand`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Writing a patient's changes in shorthand · addPatient(), shorthand",
              "description": "A patient file's history can be written short: a plain collection in which an entry says when its record began and when it stopped, as `shorthand: { active, stopped }`. `addPatient()` compiles it to the versions a hospital serves, so a developer writes two dates and not two copies of a record."
            },
            {
              "name": "given a collection whose entries carry `shorthand`"
            }
          ]
        },
        "filePath": "test/shorthand.test.ts"
      },
      {
        "name": "places the Patient at the file's earliest record time",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Writing a patient's changes in shorthand · addPatient(), shorthand",
          "given a collection whose entries carry `shorthand`"
        ],
        "extra": {
          "levels": [
            {
              "name": "Writing a patient's changes in shorthand · addPatient(), shorthand",
              "description": "A patient file's history can be written short: a plain collection in which an entry says when its record began and when it stopped, as `shorthand: { active, stopped }`. `addPatient()` compiles it to the versions a hospital serves, so a developer writes two dates and not two copies of a record."
            },
            {
              "name": "given a collection whose entries carry `shorthand`"
            }
          ]
        },
        "filePath": "test/shorthand.test.ts"
      },
      {
        "name": "omits a record before the day it became active",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Writing a patient's changes in shorthand · addPatient(), shorthand",
          "when a hospital serves the compiled file as of a date"
        ],
        "extra": {
          "levels": [
            {
              "name": "Writing a patient's changes in shorthand · addPatient(), shorthand",
              "description": "A patient file's history can be written short: a plain collection in which an entry says when its record began and when it stopped, as `shorthand: { active, stopped }`. `addPatient()` compiles it to the versions a hospital serves, so a developer writes two dates and not two copies of a record."
            },
            {
              "name": "when a hospital serves the compiled file as of a date"
            }
          ]
        },
        "filePath": "test/shorthand.test.ts"
      },
      {
        "name": "serves a medication as active until its stop, then as completed with the stop as its period's end",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Writing a patient's changes in shorthand · addPatient(), shorthand",
          "when a hospital serves the compiled file as of a date"
        ],
        "extra": {
          "levels": [
            {
              "name": "Writing a patient's changes in shorthand · addPatient(), shorthand",
              "description": "A patient file's history can be written short: a plain collection in which an entry says when its record began and when it stopped, as `shorthand: { active, stopped }`. `addPatient()` compiles it to the versions a hospital serves, so a developer writes two dates and not two copies of a record."
            },
            {
              "name": "when a hospital serves the compiled file as of a date"
            }
          ]
        },
        "filePath": "test/shorthand.test.ts"
      },
      {
        "name": "serves a condition as active until its stop, then as resolved with the stop as its abatement",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Writing a patient's changes in shorthand · addPatient(), shorthand",
          "when a hospital serves the compiled file as of a date"
        ],
        "extra": {
          "levels": [
            {
              "name": "Writing a patient's changes in shorthand · addPatient(), shorthand",
              "description": "A patient file's history can be written short: a plain collection in which an entry says when its record began and when it stopped, as `shorthand: { active, stopped }`. `addPatient()` compiles it to the versions a hospital serves, so a developer writes two dates and not two copies of a record."
            },
            {
              "name": "when a hospital serves the compiled file as of a date"
            }
          ]
        },
        "filePath": "test/shorthand.test.ts"
      },
      {
        "name": "refuses `stopped` on a MedicationRequest",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Writing a patient's changes in shorthand · addPatient(), shorthand",
          "when the file cannot be compiled"
        ],
        "extra": {
          "levels": [
            {
              "name": "Writing a patient's changes in shorthand · addPatient(), shorthand",
              "description": "A patient file's history can be written short: a plain collection in which an entry says when its record began and when it stopped, as `shorthand: { active, stopped }`. `addPatient()` compiles it to the versions a hospital serves, so a developer writes two dates and not two copies of a record."
            },
            {
              "name": "when the file cannot be compiled"
            }
          ]
        },
        "filePath": "test/shorthand.test.ts"
      },
      {
        "name": "refuses `stopped` on a type with no field that dates a stop",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Writing a patient's changes in shorthand · addPatient(), shorthand",
          "when the file cannot be compiled"
        ],
        "extra": {
          "levels": [
            {
              "name": "Writing a patient's changes in shorthand · addPatient(), shorthand",
              "description": "A patient file's history can be written short: a plain collection in which an entry says when its record began and when it stopped, as `shorthand: { active, stopped }`. `addPatient()` compiles it to the versions a hospital serves, so a developer writes two dates and not two copies of a record."
            },
            {
              "name": "when the file cannot be compiled"
            }
          ]
        },
        "filePath": "test/shorthand.test.ts"
      },
      {
        "name": "refuses a record with no date to place it at",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Writing a patient's changes in shorthand · addPatient(), shorthand",
          "when the file cannot be compiled"
        ],
        "extra": {
          "levels": [
            {
              "name": "Writing a patient's changes in shorthand · addPatient(), shorthand",
              "description": "A patient file's history can be written short: a plain collection in which an entry says when its record began and when it stopped, as `shorthand: { active, stopped }`. `addPatient()` compiles it to the versions a hospital serves, so a developer writes two dates and not two copies of a record."
            },
            {
              "name": "when the file cannot be compiled"
            }
          ]
        },
        "filePath": "test/shorthand.test.ts"
      },
      {
        "name": "refuses a Patient with no record to place it by",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Writing a patient's changes in shorthand · addPatient(), shorthand",
          "when the file cannot be compiled"
        ],
        "extra": {
          "levels": [
            {
              "name": "Writing a patient's changes in shorthand · addPatient(), shorthand",
              "description": "A patient file's history can be written short: a plain collection in which an entry says when its record began and when it stopped, as `shorthand: { active, stopped }`. `addPatient()` compiles it to the versions a hospital serves, so a developer writes two dates and not two copies of a record."
            },
            {
              "name": "when the file cannot be compiled"
            }
          ]
        },
        "filePath": "test/shorthand.test.ts"
      },
      {
        "name": "refuses a stop that is not after the start",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Writing a patient's changes in shorthand · addPatient(), shorthand",
          "when the file cannot be compiled"
        ],
        "extra": {
          "levels": [
            {
              "name": "Writing a patient's changes in shorthand · addPatient(), shorthand",
              "description": "A patient file's history can be written short: a plain collection in which an entry says when its record began and when it stopped, as `shorthand: { active, stopped }`. `addPatient()` compiles it to the versions a hospital serves, so a developer writes two dates and not two copies of a record."
            },
            {
              "name": "when the file cannot be compiled"
            }
          ]
        },
        "filePath": "test/shorthand.test.ts"
      },
      {
        "name": "refuses a day that does not exist",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Writing a patient's changes in shorthand · addPatient(), shorthand",
          "when the file cannot be compiled"
        ],
        "extra": {
          "levels": [
            {
              "name": "Writing a patient's changes in shorthand · addPatient(), shorthand",
              "description": "A patient file's history can be written short: a plain collection in which an entry says when its record began and when it stopped, as `shorthand: { active, stopped }`. `addPatient()` compiles it to the versions a hospital serves, so a developer writes two dates and not two copies of a record."
            },
            {
              "name": "when the file cannot be compiled"
            }
          ]
        },
        "filePath": "test/shorthand.test.ts"
      },
      {
        "name": "refuses a `shorthand` key that is neither `active` nor `stopped`",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Writing a patient's changes in shorthand · addPatient(), shorthand",
          "when the file cannot be compiled"
        ],
        "extra": {
          "levels": [
            {
              "name": "Writing a patient's changes in shorthand · addPatient(), shorthand",
              "description": "A patient file's history can be written short: a plain collection in which an entry says when its record began and when it stopped, as `shorthand: { active, stopped }`. `addPatient()` compiles it to the versions a hospital serves, so a developer writes two dates and not two copies of a record."
            },
            {
              "name": "when the file cannot be compiled"
            }
          ]
        },
        "filePath": "test/shorthand.test.ts"
      },
      {
        "name": "refuses a record written twice",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Writing a patient's changes in shorthand · addPatient(), shorthand",
          "when the file cannot be compiled"
        ],
        "extra": {
          "levels": [
            {
              "name": "Writing a patient's changes in shorthand · addPatient(), shorthand",
              "description": "A patient file's history can be written short: a plain collection in which an entry says when its record began and when it stopped, as `shorthand: { active, stopped }`. `addPatient()` compiles it to the versions a hospital serves, so a developer writes two dates and not two copies of a record."
            },
            {
              "name": "when the file cannot be compiled"
            }
          ]
        },
        "filePath": "test/shorthand.test.ts"
      },
      {
        "name": "refuses a file that is not a collection",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Writing a patient's changes in shorthand · addPatient(), shorthand",
          "when the file cannot be compiled"
        ],
        "extra": {
          "levels": [
            {
              "name": "Writing a patient's changes in shorthand · addPatient(), shorthand",
              "description": "A patient file's history can be written short: a plain collection in which an entry says when its record began and when it stopped, as `shorthand: { active, stopped }`. `addPatient()` compiles it to the versions a hospital serves, so a developer writes two dates and not two copies of a record."
            },
            {
              "name": "when the file cannot be compiled"
            }
          ]
        },
        "filePath": "test/shorthand.test.ts"
      },
      {
        "name": "returns a `history` file for each hospital",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "fromSynthea()"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "fromSynthea()"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "drops a record of a type the hospital does not serve",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "fromSynthea()"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "fromSynthea()"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "sends the provider with the most visits to the first hospital",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "fromSynthea()"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "fromSynthea()"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "drops an Observation that is neither a lab result nor a vital sign",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "fromSynthea()"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "fromSynthea()"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "drops a DiagnosticReport with no text whose results are not served there",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "fromSynthea()"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "fromSynthea()"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "keeps a report's text, cleaned of the digits in names and of the payer's name",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "fromSynthea()"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "fromSynthea()"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "keeps a note at the hospital of its visit, as current, with the hospital as custodian",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "fromSynthea()"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "fromSynthea()"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "rewrites each reference to the hospital's own id for the record",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "fromSynthea()"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "fromSynthea()"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "removes a reference to a record the other hospital holds",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "fromSynthea()"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "fromSynthea()"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "resolves every reference inside the file",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "fromSynthea()"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "fromSynthea()"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "leaves no `urn:uuid:`, real provider's name or Synthea URL in a file",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "fromSynthea()"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "fromSynthea()"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "names the hospital as each visit's provider, with none of Synthea's identifiers",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "fromSynthea()"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "fromSynthea()"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "strips the digits from the Patient's names, and removes Synthea's own extensions",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "fromSynthea()"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "fromSynthea()"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "gives the Patient the hospital's own id and medical record number",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "fromSynthea()"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "fromSynthea()"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "gives the Patient one version, at the earliest record time of its file",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "fromSynthea()"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "fromSynthea()"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "gives a stopped order two versions: active when written, completed at its stop in `medications.csv`",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "when a record changes after it is first held"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "when a record changes after it is first held"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "ends an order at its renewal when that comes before the stop",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "when a record changes after it is first held"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "when a record changes after it is first held"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "gives an order stopped at its start one version",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "when a record changes after it is first held"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "when a record changes after it is first held"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "gives a condition that abates later two versions",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "when a record changes after it is first held"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "when a record changes after it is first held"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "gives a condition abated when it was recorded one version",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "when a record changes after it is first held"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "when a record changes after it is first held"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "gives a record that never changes one version",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "when a record changes after it is first held"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "when a record changes after it is first held"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "starts the second hospital's copy at its first visit that finds the record active",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "when a record changes after it is first held"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "when a record changes after it is first held"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "places an allergy with no visit on its own date at the first hospital",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "when a record changes after it is first held"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "when a record changes after it is first held"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "leaves out of the second hospital a record no visit there finds active",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "when a record changes after it is first held"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "when a record changes after it is first held"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "returns a person's rows from the first six columns of `medications.csv`",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "medicationRows()"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "medicationRows()"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "throws for a file that does not begin with those columns",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "medicationRows()"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "medicationRows()"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "returns each insurer but a public programme",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "payerNames()"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "payerNames()"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "returns the names of organisations and locations, never a practitioner's",
        "status": "passed",
        "duration": 2,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "providerDetails()"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "providerDetails()"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "returns each address and phone number once, and no email address",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "providerDetails()"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "providerDetails()"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "throws for three hospitals",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "when a person cannot be held faithfully"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "when a person cannot be held faithfully"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "throws for a Medication the bundle does not hold",
        "status": "passed",
        "duration": 1,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "when a person cannot be held faithfully"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "when a person cannot be held faithfully"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "throws for a completed order with no stop in `medications.csv`",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "when a person cannot be held faithfully"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "when a person cannot be held faithfully"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "throws for a resolved condition with no abatement date",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "when a person cannot be held faithfully"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "when a person cannot be held faithfully"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      },
      {
        "name": "throws for a record with no date to be first held at",
        "status": "passed",
        "duration": 0,
        "suite": [
          "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
          "when a person cannot be held faithfully"
        ],
        "extra": {
          "levels": [
            {
              "name": "Making the generated people from Synthea's output · fromSynthea(), medicationRows(), payerNames(), providerDetails()",
              "description": "`npm run synthea` turns one Synthea person into a patient file for each hospital that holds them: real providers' names removed, ids made the hospital's own, and each record cut into versions by the dates Synthea gave."
            },
            {
              "name": "when a person cannot be held faithfully"
            }
          ]
        },
        "filePath": "test/synthea.test.ts"
      }
    ],
    "environment": {
      "repositoryUrl": "https://github.com/the-cascade-protocol/cascade-sandbox",
      "commit": "f1a59b8d4a37d57de9cd72be0abcf4447bb19ae3",
      "buildUrl": "https://github.com/the-cascade-protocol/cascade-sandbox/actions/runs/44953618528",
      "branchName": "main"
    }
  }
}
