markitosaad
03/26/2024, 6:05 PMmarkitosaad
03/26/2024, 6:05 PMrahul1
03/26/2024, 6:31 PMitems field of question #2, which makes it a "sub-question". This actually isn't valid for questions that aren't of type group.
If you just make your question #3 parallel to question 2 (i.e. all of your questions are in the top-level items array), this should work as expectedmarkitosaad
03/26/2024, 7:41 PMgroup and what you suggested @rahul1 ! Thanks 🙂markitosaad
03/26/2024, 7:59 PMjson
{
"linkId": "new_item",
"text": "Add a new item",
"type": "reference"
}
I saw that the query is looking for a parameter called _id (GET https://api.medplum.com/fhir/R4/Device?_id=d&_count=10). Is this the randomly generated id that can be found in the device json? ("d934017b-6f8f-4508-92de-a79de8986a39"). If so, I guess the next question is, would we need to customize the behavior of the component to search based on other parameters for this reference type?rahul1
03/26/2024, 11:04 PMReferenceInput component searches by any search parameter called name, if it exists. If not, we fallback to the idrahul1
03/26/2024, 11:05 PMDevice, which search param would you want to search by? device-name?rahul1
03/26/2024, 11:05 PMmarkitosaad
03/27/2024, 12:45 AMdevice-namerahul1
03/28/2024, 4:36 AMmarkitosaad
03/28/2024, 3:36 PMmarkitosaad
03/28/2024, 3:55 PMreference type, define it's initial value's reference type (ex: patient, device, questionnaire, etc) without having to set an actual reference object? The goal here is to have a form input that is constrained on which reference types you can select, but doesn't define a value ref by default.rahul1
03/29/2024, 7:38 PMrahul1
03/29/2024, 7:40 PMmarkitosaad
03/29/2024, 7:54 PM