This allows you to create profiles on resources in Aidbox instance at runtime
Send a PUT request to create a profile called "patient-profile" and specify that the "gender" key must be present.
PUT /fhir/StructureDefinition/patient-profilecontent-type:text/yamlaccept:text/yamlresourceType:StructureDefinitionurl:http://example.org/fhir/StructureDefinition/patient-profilename:patient-profilederivation:constrainttype:Patientstatus:activekind:resourceabstract:falsedifferential:element: - id:Patient.genderpath:Patient.gendermax:"1"min:1
Check that the profile was successfully uploaded by creating a Patient resource with the URL of the created profile specified.
POST /fhir/Patientcontent-type:text/yamlaccept:text/yamlresourceType:Patientmeta:profile: - http://example.org/fhir/StructureDefinition/patient-profile
In response, you will receive an error because the profile specifies that the "gender" key is required.
You can create SearchParameters to search for resources.
Send a PUT request to create a FHIR search parameter called "patient-profile"
PUT /fhir/SearchParameter/new-gendercontent-type:text/yamlaccept:text/yamlresourceType:SearchParameterurl:http://example.org/fhir/SearchParameter/new-genderbase:- Patientexpression:Patient.genderstatus:drafttype:tokenversion:4.0.1name:new-gendercode:new-gender
Check that the search parameter was successfully uploaded by creating a Patient resource and search them using "new-gender" query parameter.
POST /fhir/Patientcontent-type:text/yamlaccept:text/yamlgender:unknown
GET /fhir/Patient?new-gender=unknown
Creating a ValueSet
Send a PUT request to create a ValueSet called "my-gender-identity"
PUT /fhir/ValueSet/my-gender-identitycontent-type:text/yamlaccept:text/yamlresourceType:ValueSeturl:http://hl7.org/fhir/ValueSet/my-gender-identitystatus:draftname:my-gender-identitycompose:include: - system:http://hl7.org/fhir/gender-identityconcept: - code:maledisplay:male - code:femaledisplay:female - code:non-binarydisplay:non-binary - code:transgender-maledisplay:transgender male - code:transgender-femaledisplay:transgender female - code:otherdisplay:other - code:non-disclosedisplay:does not wish to disclose