Created
August 16, 2024 22:37
-
-
Save ethanjdiamond/9cd3b02eed19844c8c1fc331a4d8621a to your computer and use it in GitHub Desktop.
Query1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST / | |
content-type: application/json | |
accept: application/json | |
{ | |
"type": "transaction", | |
"entry": [ | |
{ | |
"request": { | |
"method": "PUT", | |
"url": "fhir//StructureDefinition/VisitCard" | |
}, | |
"resource": { | |
"id": "VisitCard", | |
"resourceType": "StructureDefinition", | |
"url": "http://localhost:3005/StructureDefinition/VisitCard", | |
"version": "1.0.0", | |
"name": "VisitCard", | |
"status": "active", | |
"description": "A card that patients interact with", | |
"fhirVersion": "4.0.1", | |
"kind": "resource", | |
"abstract": false, | |
"type": "VisitCard", | |
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element", | |
"derivation": "specialization", | |
"differential": { | |
"element": [ | |
{ | |
"id": "VisitCard", | |
"path": "VisitCard", | |
"short": "VisitCard", | |
"definition": "A card that patients interact with" | |
}, | |
{ | |
"id": "VisitCard.status", | |
"path": "VisitCard.status", | |
"short": "The status of the card", | |
"definition": "The status of the card", | |
"min": 0, | |
"max": "1", | |
"type": [ | |
{ | |
"code": "code" | |
} | |
] | |
}, | |
{ | |
"id": "VisitCard.title", | |
"path": "VisitCard.title", | |
"short": "The title shown at the top of the card", | |
"definition": "The title shown at the top of the card", | |
"min": 0, | |
"max": "1", | |
"type": [ | |
{ | |
"code": "string" | |
} | |
] | |
}, | |
{ | |
"id": "VisitCard.body", | |
"path": "VisitCard.body", | |
"short": "The body rich text of the card", | |
"definition": "The body rich text of the card", | |
"min": 0, | |
"max": "1", | |
"type": [ | |
{ | |
"code": "markdown" | |
} | |
] | |
}, | |
{ | |
"id": "VisitCard.workflow", | |
"path": "VisitCard.workflow", | |
"short": "The temporal workflow that created this", | |
"definition": "The temporal workflow that created this", | |
"min": 0, | |
"max": "1", | |
"type": [ | |
{ | |
"code": "BackboneElement" | |
} | |
] | |
}, | |
{ | |
"id": "VisitCard.workflow.type", | |
"path": "VisitCard.workflow.type", | |
"short": "The name of the logical model", | |
"definition": "The name of the logical model", | |
"min": 1, | |
"max": "1", | |
"type": [ | |
{ | |
"code": "string" | |
} | |
] | |
}, | |
{ | |
"id": "VisitCard.workflow.id", | |
"path": "VisitCard.workflow.id", | |
"short": "The workflowId of the workflow", | |
"definition": "The workflowId of the workflow", | |
"min": 1, | |
"max": "1", | |
"type": [ | |
{ | |
"code": "string" | |
} | |
] | |
}, | |
{ | |
"id": "VisitCard.type", | |
"path": "VisitCard.type", | |
"short": "The card type", | |
"definition": "The card type", | |
"min": 1, | |
"max": "1", | |
"type": [ | |
{ | |
"code": "code" | |
} | |
] | |
}, | |
{ | |
"id": "VisitCard.reference", | |
"path": "VisitCard.reference", | |
"short": "Any references the card may have", | |
"definition": "Any references the card may have", | |
"min": 0, | |
"max": "*", | |
"type": [ | |
{ | |
"code": "CodeableReference" | |
} | |
] | |
}, | |
{ | |
"id": "VisitCard.answerSent", | |
"path": "VisitCard.answerSent", | |
"short": "When the answer was sent back", | |
"definition": "When the answer was sent back", | |
"min": 0, | |
"max": "1", | |
"type": [ | |
{ | |
"code": "dateTime" | |
} | |
] | |
}, | |
{ | |
"id": "VisitCard.answerOption", | |
"path": "VisitCard.answerOption", | |
"short": "Options for answers that a patient might select", | |
"definition": "Options for answers that a patient might select", | |
"min": 0, | |
"max": "*", | |
"type": [ | |
{ | |
"code": "BackboneElement" | |
} | |
] | |
}, | |
{ | |
"id": "VisitCard.answerOption.value[x]", | |
"path": "VisitCard.answerOption.value[x]", | |
"short": "Value of answer option", | |
"definition": "Value of answer option", | |
"min": 1, | |
"max": "1", | |
"type": [ | |
{ | |
"code": "string" | |
}, | |
{ | |
"code": "integer" | |
} | |
] | |
}, | |
{ | |
"id": "VisitCard.answer", | |
"path": "VisitCard.answer", | |
"short": "The answer given by the patient", | |
"definition": "The answer given by the patient", | |
"min": 0, | |
"max": "1", | |
"type": [ | |
{ | |
"code": "BackboneElement" | |
} | |
] | |
}, | |
{ | |
"id": "VisitCard.answer.value[x]", | |
"path": "VisitCard.answer.value[x]", | |
"short": "Value of answer", | |
"definition": "Value of answer", | |
"min": 1, | |
"max": "*", | |
"type": [ | |
{ | |
"code": "string" | |
}, | |
{ | |
"code": "integer" | |
}, | |
{ | |
"code": "dateTime" | |
} | |
] | |
}, | |
{ | |
"id": "VisitCard.encounterId", | |
"path": "VisitCard.encounterId", | |
"short": "Encounter", | |
"definition": "Encounter", | |
"min": 1, | |
"max": "1", | |
"type": [ | |
{ | |
"code": "string" | |
} | |
] | |
} | |
] | |
} | |
} | |
}, | |
{ | |
"request": { | |
"method": "PUT", | |
"url": "fhir//StructureDefinition/DiagnosticModule" | |
}, | |
"resource": { | |
"id": "DiagnosticModule", | |
"resourceType": "StructureDefinition", | |
"url": "http://localhost:3005/StructureDefinition/DiagnosticModule", | |
"version": "1.0.0", | |
"name": "DiagnosticModule", | |
"status": "active", | |
"description": "A series of questions that a patient gets asked", | |
"fhirVersion": "4.0.1", | |
"kind": "resource", | |
"abstract": false, | |
"type": "DiagnosticModule", | |
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element", | |
"derivation": "specialization", | |
"differential": { | |
"element": [ | |
{ | |
"id": "DiagnosticModule", | |
"path": "DiagnosticModule", | |
"short": "DiagnosticModule", | |
"definition": "A series of questions that a patient gets asked" | |
}, | |
{ | |
"id": "DiagnosticModule.name", | |
"path": "DiagnosticModule.name", | |
"short": "The display name of the module", | |
"definition": "The display name of the module", | |
"min": 1, | |
"max": "1", | |
"type": [ | |
{ | |
"code": "string" | |
} | |
] | |
}, | |
{ | |
"id": "DiagnosticModule.version", | |
"path": "DiagnosticModule.version", | |
"short": "The version of the diagnostic module", | |
"definition": "The version of the diagnostic module", | |
"min": 1, | |
"max": "1", | |
"type": [ | |
{ | |
"code": "integer" | |
} | |
] | |
}, | |
{ | |
"id": "DiagnosticModule.active", | |
"path": "DiagnosticModule.active", | |
"short": "Is this module version currently active?", | |
"definition": "Is this module version currently active?", | |
"min": 1, | |
"max": "1", | |
"type": [ | |
{ | |
"code": "boolean" | |
} | |
] | |
}, | |
{ | |
"id": "DiagnosticModule.item", | |
"path": "DiagnosticModule.item", | |
"short": "The items that get asked in the diagnostic module", | |
"definition": "The items that get asked in the diagnostic module", | |
"min": 0, | |
"max": "*", | |
"type": [ | |
{ | |
"code": "BackboneElement" | |
} | |
] | |
}, | |
{ | |
"id": "DiagnosticModule.item.type", | |
"path": "DiagnosticModule.item.type", | |
"short": "The card type", | |
"definition": "The card type", | |
"min": 1, | |
"max": "1", | |
"type": [ | |
{ | |
"code": "code" | |
} | |
] | |
}, | |
{ | |
"id": "DiagnosticModule.item.title", | |
"path": "DiagnosticModule.item.title", | |
"short": "Title of the question", | |
"definition": "Title of the question", | |
"min": 0, | |
"max": "1", | |
"type": [ | |
{ | |
"code": "string" | |
} | |
] | |
}, | |
{ | |
"id": "DiagnosticModule.item.body", | |
"path": "DiagnosticModule.item.body", | |
"short": "Body of the question", | |
"definition": "Body of the question", | |
"min": 0, | |
"max": "1", | |
"type": [ | |
{ | |
"code": "markdown" | |
} | |
] | |
}, | |
{ | |
"id": "DiagnosticModule.item.answerOption", | |
"path": "DiagnosticModule.item.answerOption", | |
"short": "Options for answers that a patient might select", | |
"definition": "Options for answers that a patient might select", | |
"min": 0, | |
"max": "*", | |
"type": [ | |
{ | |
"code": "BackboneElement" | |
} | |
] | |
}, | |
{ | |
"id": "DiagnosticModule.item.answerOption.value[x]", | |
"path": "DiagnosticModule.item.answerOption.value[x]", | |
"short": "Value of answer option", | |
"definition": "Value of answer option", | |
"min": 1, | |
"max": "1", | |
"type": [ | |
{ | |
"code": "string" | |
}, | |
{ | |
"code": "integer" | |
} | |
] | |
} | |
] | |
} | |
} | |
}, | |
{ | |
"request": { | |
"method": "PUT", | |
"url": "fhir//SearchParameter/Communication-visit-card" | |
}, | |
"resource": { | |
"id": "Communication-visit-card", | |
"resourceType": "SearchParameter", | |
"url": "http://localhost:3005/Communication-visit-card", | |
"version": "4.3.0", | |
"name": "Communication-visit-card", | |
"status": "active", | |
"description": "Returns a VisitCard that a Communication links to.", | |
"base": [ | |
"Communication" | |
], | |
"target": [ | |
"VisitCard" | |
], | |
"code": "visit-card", | |
"type": "reference", | |
"expression": "Communication.payload.content.where(resolve() is VisitCard)" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment