Hello! We've installed a fresh self-hosted Medplum...
# dev
r
Hello! We've installed a fresh self-hosted Medplum system. But getting the below error while trying to use any component provided by '@medplum/react' TypeError: a.data.StructureDefinitionList is not iterable at client.ts:1508:57
r
@ravindratc , does your user have an access policy set?
Also, can you please post this in the #1094022380659155005 channel
r
@rahul1 Yes, We have role based access policies. I've attached one access policy json that we are using for Practitioner. "resource": [ { "resourceType": "ServiceRequest" }, { "resourceType": "DiagnosticReport" }, { "resourceType": "Bot", "readonly": true }, { "resourceType": "ActivityDefinition", "readonly": true }, { "resourceType": "PlanDefinition", "readonly": true }, { "resourceType": "ObservationDefinition", "readonly": true }, { "resourceType": "SpecimenDefinition", "readonly": true }, { "resourceType": "Observation" }, { "resourceType": "Specimen" }, { "resourceType": "Patient" }, { "resourceType": "Media" }, { "resourceType": "Binary" }, { "resourceType": "Location" }, { "resourceType": "DeviceRequest" }, { "resourceType": "Practitioner" }, { "resourceType": "PractitionerRole" }, { "resourceType": "Organization" }, { "resourceType": "Task" }, { "resourceType": "Coverage" }, { "resourceType": "DocumentReference" }, { "resourceType": "QuestionnaireResponse" } And Yes, I'll post it in support channel as well.
One more thing, I've checked the Medplum story And found that SearchControl not working. I've attached the screenshot as well please check.
@rahul1 I found the cause of the error. I've not added the StructureDefinition and SearchParameter in AccessPolicies.
170 Views