The resource generated in X010_Questionnaire will intermittently be invalid. The failure stems from the questionnaire being generated with an item with type "question".
{
"meta": {
"tag": [
{
"system": "http://projectcrucible.org",
"code": "testdata"
}
]
},
"language": "de-CH",
"text": {
"status": "generated",
"div": "<div>T6tPj1uc3d4ualMAfivP7g==</div>"
},
"url": "http://projectcrucible.org/AUSfhpLj/8lZR0yBd75FWQ==",
"identifier": [
{
"use": "temp",
"type": {
"coding": [
{
"system": "http://hl7.org/fhir/identifier-type",
"code": "SNO",
"display": "Serial Number",
"userSelected": false
}
],
"text": "iC4K65SDmRxEHLri5KiqNQ=="
},
"system": "http://projectcrucible.org/qqMfks7XhJ4D/Json+1h1w==",
"value": "3ARJOnXnQIxwzQ6eNluOjg==",
"period": {
"start": "2018-02-06T21:51:51.410Z",
"end": "2018-02-06T21:51:51.410Z"
},
"assigner": {
"identifier": {
"use": "temp",
"system": "http://projectcrucible.org/hnw1ODASgp/ZcXiQWhG/bQ==",
"value": "FQicUYUeaqUJvZEb1Qab/Q=="
},
"display": "Organization 7wLywYCNnl0ps7PhTxP3+g=="
}
}
],
"name": "RtB5GteDJhbgvYWVCL5TyQ==",
"title": "6sIoxw633leSxlTDvx8edA==",
"status": "draft",
"experimental": false,
"date": "2018-02-06T21:51:51.410Z",
"publisher": "wg7FJ3D7CXDpKZSwAeeDbQ==",
"description": "y1ooCDcbinl1PlIEYv9qPg==",
"purpose": "w0Jyu9/EgV/9l8REwJztFw==",
"approvalDate": "2018-02-06",
"lastReviewDate": "2018-02-06",
"effectivePeriod": {
"start": "2018-02-06T21:51:51.410Z",
"end": "2018-02-06T21:51:51.410Z"
},
"useContext": [
{
"code": {
"system": "http://hl7.org/fhir/usage-context-type",
"code": "task",
"display": "Workflow Task",
"userSelected": false
},
"valueRange": {
"low": {
"value": 0.7393112961738725,
"comparator": "<=",
"unit": "lJFJlxK8XeQbmwg9kmgVGQ==",
"system": "http://projectcrucible.org/H+PpWB6xCWVGt9w3eirUDg==",
"code": "WNGVe8IzIPlxhhLdryY9EA=="
},
"high": {
"value": 0.7411792367291858,
"comparator": "<",
"unit": "nVt8136gKCTVJVdGTxmIow==",
"system": "http://projectcrucible.org/S8ZuuIhnk47ohU/So0bbnA==",
"code": "s9OT/Y4V3gZfbSBWC9oX6A=="
}
}
}
],
"jurisdiction": [
{
"coding": [
{
"system": "https://www.usps.com/",
"code": "TX",
"userSelected": true
}
],
"text": "JxHb9AFk1UwMZdYmmitjzg=="
}
],
"contact": [
{
"name": "BgH6MSZIKn8nIhpNYlMIpg==",
"telecom": [
{
"system": "pager",
"value": "Kw7H0esOYtXHMKzE1Fqa1A==",
"use": "work",
"rank": 50,
"period": {
"start": "2018-02-06T21:51:51.420Z",
"end": "2018-02-06T21:51:51.420Z"
}
}
]
}
],
"copyright": "8yyDnk1wu9+Dy2xRh5S6Qg==",
"code": [
{
"system": "http://loinc.org",
"code": "10389-5",
"display": "Blood product.other [Type]",
"userSelected": true
}
],
"subjectType": [
"PaymentNotice"
],
"item": [
{
"linkId": "4GbGnce5EwG8Oaj1UQYT4w==",
"definition": "http://projectcrucible.org/QAUcRKYhSTDhWfWj5s5A0w==",
"code": [
{
"system": "http://loinc.org",
"code": "10190-7",
"display": "Mental status Narrative",
"userSelected": false
}
],
"prefix": "SeXCeAzEQua+LjnTHqEtPg==",
"text": "Tg+i+wEyZ5NhLqlDC7T9mA==",
"type": "question",
"enableWhen": [
{
"question": "xYj55jr4/HoyVrwCWk+nXQ==",
"answerCoding": {
"system": "http://snomed.info/sct",
"userSelected": false
}
}
],
"required": true,
"repeats": true,
"readOnly": false,
"initialReference": {
"identifier": {
"use": "secondary",
"system": "http://projectcrucible.org/RTZYuqmbDKiShE4h4uOIug==",
"value": "La2CcHOmXWXwckyPwsE9Gw=="
},
"display": "Resource +0vHiUuyNi+iXEeeuiel/Q=="
}
}
],
"resourceType": "Questionnaire"
}
The resource generated in X010_Questionnaire will intermittently be invalid. The failure stems from the questionnaire being generated with an item with type "question".
Below is an example of the generated incorrect resource: