{
"description": "Status tracking resource for flat file imports.",
"_filename": "StructureDefinition-flat-import-status.json",
"package_name": "io.health-samurai.core.r4",
"date": null,
"derivation": "specialization",
"publisher": null,
"fhirVersion": "4.0.1",
"name": "FlatImportStatus",
"abstract": false,
"type": "FlatImportStatus",
"experimental": null,
"resourceType": "StructureDefinition",
"title": null,
"package_version": "0.2601.0",
"status": "active",
"id": "c149de54-09b1-4d0a-8a2f-5dd09f8c1538",
"kind": "resource",
"url": "http://health-samurai.io/fhir/core/StructureDefinition/FlatImportStatus",
"version": "0.2601.0",
"differential": {
"element": [ {
"id": "FlatImportStatus",
"max": "*",
"min": 0,
"path": "FlatImportStatus",
"constraint": [ {
"key": "exclusive-20",
"human": "Only one of result or error can be present",
"severity": "error",
"expression": "(%context.result | %context.error).count() <= 1"
} ]
}, {
"id": "FlatImportStatus.status",
"max": "1",
"min": 0,
"path": "FlatImportStatus.status",
"type": [ {
"code": "string"
} ],
"short": "Current status of the import process.",
"constraint": [ {
"key": "enum-15",
"human": "Status must be one of: in-progress, done, fail",
"severity": "error",
"expression": "%context.subsetOf('in-progress' | 'done' | 'fail')"
} ]
}, {
"id": "FlatImportStatus.params",
"max": "1",
"min": 0,
"path": "FlatImportStatus.params",
"short": "Parameters used for the import.",
"extension": [ {
"url": "http://health-samurai.io/fhir/core/StructureDefinition/additional-properties-custom-type",
"valueCode": "any"
} ]
}, {
"id": "FlatImportStatus.result",
"max": "1",
"min": 0,
"path": "FlatImportStatus.result",
"type": [ {
"code": "BackboneElement"
} ],
"short": "Result information for successful import."
}, {
"id": "FlatImportStatus.result.count",
"max": "1",
"min": 0,
"path": "FlatImportStatus.result.count",
"type": [ {
"code": "integer"
} ],
"short": "Count of successfully imported resources.",
"constraint": [ {
"key": "min-19",
"human": "Count must be greater than 0",
"severity": "error",
"expression": "%context > 0"
} ]
}, {
"id": "FlatImportStatus.error",
"max": "1",
"min": 0,
"path": "FlatImportStatus.error",
"type": [ {
"code": "BackboneElement"
} ],
"short": "Error information when import fails."
}, {
"id": "FlatImportStatus.error.code",
"max": "1",
"min": 0,
"path": "FlatImportStatus.error.code",
"type": [ {
"code": "string"
} ],
"short": "Error code."
}, {
"id": "FlatImportStatus.error.message",
"max": "1",
"min": 0,
"path": "FlatImportStatus.error.message",
"type": [ {
"code": "string"
} ],
"short": "Error message description."
} ]
},
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/DomainResource"
}