PackagesCanonicalsLogsProblems
    Packages
    io.health-samurai.core.r3@0.2609.0
    http://health-samurai.io/fhir/core/StructureDefinition/AidboxMaterializationStatus
{
  "description": "Tracks the outcome of running $materialize on an AidboxMaterialization: current status, the AidboxMaterialization it belongs to, and the AidboxMaterialization version that was run.",
  "_filename": "StructureDefinition-AidboxMaterializationStatus.json",
  "package_name": "io.health-samurai.core.r3",
  "date": null,
  "derivation": "specialization",
  "publisher": "Health Samurai",
  "fhirVersion": "3.0.2",
  "name": "AidboxMaterializationStatus",
  "abstract": false,
  "type": "AidboxMaterializationStatus",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": "Aidbox Materialization Status",
  "package_version": "0.2609.0",
  "extension": [ {
    "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
    "valueString": "sql-on-fhir"
  } ],
  "status": "active",
  "id": "7d78b93f-9994-4dec-af84-c7b9b8250331",
  "kind": "resource",
  "url": "http://health-samurai.io/fhir/core/StructureDefinition/AidboxMaterializationStatus",
  "version": "0.2609.0",
  "differential": {
    "element": [ {
      "id": "AidboxMaterializationStatus",
      "max": "*",
      "min": 0,
      "path": "AidboxMaterializationStatus"
    }, {
      "id": "AidboxMaterializationStatus.status",
      "max": "1",
      "min": 1,
      "path": "AidboxMaterializationStatus.status",
      "type": [ {
        "code": "code"
      } ],
      "short": "in-progress | done | error | canceled",
      "constraint": [ {
        "key": "materialization-status",
        "human": "status shall be one of: in-progress, done, error, canceled",
        "severity": "error",
        "expression": "%context.subsetOf('in-progress' | 'done' | 'error' | 'canceled')"
      } ]
    }, {
      "id": "AidboxMaterializationStatus.target",
      "max": "1",
      "min": 1,
      "path": "AidboxMaterializationStatus.target",
      "type": [ {
        "code": "Reference",
        "targetProfile": "http://health-samurai.io/fhir/core/StructureDefinition/AidboxMaterialization"
      } ],
      "short": "The AidboxMaterialization this status belongs to."
    }, {
      "id": "AidboxMaterializationStatus.targetVersion",
      "max": "1",
      "min": 1,
      "path": "AidboxMaterializationStatus.targetVersion",
      "type": [ {
        "code": "id"
      } ],
      "short": "AidboxMaterialization.meta.versionId at the time of the run.",
      "definition": "Compared against the current AidboxMaterialization.meta.versionId to decide whether a materialization is up to date. Kept in its own field because Aidbox does not index or validate the version part of a Reference."
    }, {
      "id": "AidboxMaterializationStatus.sqlHash",
      "max": "1",
      "min": 0,
      "path": "AidboxMaterializationStatus.sqlHash",
      "type": [ {
        "code": "string"
      } ],
      "short": "Hash of the SQL the target compiled to when this run happened.",
      "definition": "A ViewDefinition or Library carries no version of its own, so this is what tells an edit apart from an unchanged source. It hashes the generated SQL rather than the resource, so a change that does not affect the SQL does not force a rebuild."
    }, {
      "id": "AidboxMaterializationStatus.duration",
      "max": "1",
      "min": 0,
      "path": "AidboxMaterializationStatus.duration",
      "type": [ {
        "code": "integer"
      } ],
      "short": "Milliseconds the run took.",
      "definition": "Wall-clock time of the run that produced this status, from the in-progress write to done or error. Absent while a run is in progress and on statuses written before this field existed."
    }, {
      "id": "AidboxMaterializationStatus.error",
      "max": "1",
      "min": 0,
      "path": "AidboxMaterializationStatus.error",
      "type": [ {
        "code": "string"
      } ],
      "short": "Why the run failed.",
      "definition": "The error message of the failure that ended the run. Present only on a status of error; a later successful run replaces the status and the message with it."
    } ]
  },
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource"
}