Created
August 16, 2024 22:39
-
-
Save ethanjdiamond/7e0afccc03157b9d04556c337161f799 to your computer and use it in GitHub Desktop.
Query2
This file contains hidden or 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 /fhir | |
content-type: application/json | |
accept: application/json | |
{"type":"transaction","entry":[{"request":{"method":"PUT","url":"/StructureDefinition?_id=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 - in-progress | finished | cancelled","definition":"The status of the card - in-progress | finished | cancelled","min":0,"max":"1","type":[{"code":"code"}]},{"id":"VisitCard.type","path":"VisitCard.type","short":"The card type","definition":"The card type","min":1,"max":"1","type":[{"code":"code"}]},{"id":"VisitCard.encounter","path":"VisitCard.encounter","short":"The encounter this belongs to","definition":"The encounter this belongs to","min":1,"max":"1","type":[{"code":"Reference","targetProfile":["http://hl7.org/fhir/StructureDefinition/Encounter"]}]},{"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 type of the workflow","definition":"The name of the type of the workflow","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.period","path":"VisitCard.period","short":"Time from when the card was sent to when it was responded to","definition":"Time from when the card was sent to when it was responded to","min":1,"max":"1","type":[{"code":"Period"}]},{"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.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.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"}]}]}}},{"request":{"method":"PUT","url":"/StructureDefinition?_id=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":"/SearchParameter?_id=VisitCard-encounter"},"resource":{"id":"VisitCard-encounter","resourceType":"SearchParameter","url":"http://localhost:3005/VisitCard-encounter","version":"1.0.0","name":"encounter","status":"active","description":"Returns the Encounter that a VisitCard links to.","base":["VisitCard"],"target":["Encounter"],"code":"encounter","type":"reference","expression":"VisitCard.encounter.where(resolve() is Encounter)"}},{"request":{"method":"PUT","url":"/SearchParameter?_id=Communication-visit-card"},"resource":{"id":"Communication-visit-card","resourceType":"SearchParameter","url":"http://localhost:3005/Communication-visit-card","version":"1.0.0","name":"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.ofType(Reference).where(resolve() is VisitCard)"}}]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment