where possible store the SourceURI with the resource.

requires updated version of Fasten sources (better Binary compatibility)
This commit is contained in:
Jason Kulatunga 2023-08-17 12:14:33 -06:00
parent 936af443bd
commit 2f292397f7
61 changed files with 13 additions and 502 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
<data-source source="LOCAL" name="fasten" uuid="b32d1214-0f9b-4c79-b291-d03ac069209e">
<data-source source="LOCAL" name="fasten" uuid="d164a8cf-0ebf-4a73-b7a0-59097243fbce">
<driver-ref>sqlite.xerial</driver-ref>
<synchronize>true</synchronize>
<jdbc-driver>org.sqlite.JDBC</jdbc-driver>

View File

@ -250,6 +250,7 @@ func (sr *SqliteRepository) GetSummary(ctx context.Context) (*models.Summary, er
//This function will create a new resource if it does not exist, or update an existing resource if it does exist.
//It will also create associations between fhir resources
//This function is called directly by fasten-sources
func (sr *SqliteRepository) UpsertRawResource(ctx context.Context, sourceCredential sourceModel.SourceCredential, rawResource sourceModel.RawResourceFhir) (bool, error) {
source := sourceCredential.(*models.SourceCredential)
@ -268,6 +269,9 @@ func (sr *SqliteRepository) UpsertRawResource(ctx context.Context, sourceCredent
ResourceRaw: datatypes.JSON(rawResource.ResourceRaw),
RelatedResource: nil,
}
if len(rawResource.SourceUri) > 0 {
wrappedResourceModel.SourceUri = &rawResource.SourceUri
}
//create associations
//note: we create the association in the related_resources table **before** the model actually exists.
@ -332,6 +336,7 @@ func (sr *SqliteRepository) UpsertResource(ctx context.Context, wrappedResourceM
wrappedFhirResourceModel.SetOriginBase(wrappedResourceModel.OriginBase)
wrappedFhirResourceModel.SetSortTitle(wrappedResourceModel.SortTitle)
wrappedFhirResourceModel.SetSortDate(wrappedResourceModel.SortDate)
wrappedFhirResourceModel.SetSourceUri(wrappedResourceModel.SourceUri)
//TODO: this takes too long, we need to find a way to do this processing faster or in the background async.
err = wrappedFhirResourceModel.PopulateAndExtractSearchParameters(json.RawMessage(wrappedResourceModel.ResourceRaw))

View File

@ -35,9 +35,6 @@ type FhirAccount struct {
// Profiles this resource claims to conform to
// https://hl7.org/fhir/r4/search.html#reference
Profile datatypes.JSON `gorm:"column:profile;type:text;serializer:json" json:"profile,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// active | inactive | entered-in-error | on-hold | unknown
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -64,7 +61,6 @@ func (s *FhirAccount) GetSearchParameters() map[string]string {
"owner": "reference",
"period": "date",
"profile": "reference",
"sourceUri": "uri",
"status": "token",
"subject": "reference",
"tag": "token",
@ -307,11 +303,6 @@ func (s *FhirAccount) PopulateAndExtractSearchParameters(resourceRaw json.RawMes
if err == nil && profileResult.String() != "undefined" {
s.Profile = []byte(profileResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'Account.status')

View File

@ -50,9 +50,6 @@ type FhirAdverseEvent struct {
// mild | moderate | severe
// https://hl7.org/fhir/r4/search.html#token
Severity datatypes.JSON `gorm:"column:severity;type:text;serializer:json" json:"severity,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// AdverseEvent.study
// https://hl7.org/fhir/r4/search.html#reference
Study datatypes.JSON `gorm:"column:study;type:text;serializer:json" json:"study,omitempty"`
@ -87,7 +84,6 @@ func (s *FhirAdverseEvent) GetSearchParameters() map[string]string {
"resultingcondition": "reference",
"seriousness": "token",
"severity": "token",
"sourceUri": "uri",
"study": "reference",
"subject": "reference",
"substance": "reference",
@ -488,11 +484,6 @@ func (s *FhirAdverseEvent) PopulateAndExtractSearchParameters(resourceRaw json.R
if err == nil && severityResult.String() != "undefined" {
s.Severity = []byte(severityResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Study
studyResult, err := vm.RunString(`
StudyResult = window.fhirpath.evaluate(fhirResource, 'AdverseEvent.study')

View File

@ -132,9 +132,6 @@ type FhirAllergyIntolerance struct {
// mild | moderate | severe (of event as a whole)
// https://hl7.org/fhir/r4/search.html#token
Severity datatypes.JSON `gorm:"column:severity;type:text;serializer:json" json:"severity,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// Tags applied to this resource
// https://hl7.org/fhir/r4/search.html#token
Tag datatypes.JSON `gorm:"column:tag;type:text;serializer:json" json:"tag,omitempty"`
@ -167,7 +164,6 @@ func (s *FhirAllergyIntolerance) GetSearchParameters() map[string]string {
"recorder": "reference",
"route": "token",
"severity": "token",
"sourceUri": "uri",
"tag": "token",
"text": "string",
"type": "special",
@ -719,11 +715,6 @@ func (s *FhirAllergyIntolerance) PopulateAndExtractSearchParameters(resourceRaw
if err == nil && severityResult.String() != "undefined" {
s.Severity = []byte(severityResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Tag
tagResult, err := vm.RunString(`
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')

View File

@ -62,9 +62,6 @@ type FhirAppointment struct {
// The slots that this appointment is filling
// https://hl7.org/fhir/r4/search.html#reference
Slot datatypes.JSON `gorm:"column:slot;type:text;serializer:json" json:"slot,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// The specialty of a practitioner that would be required to perform the service requested in this appointment
// https://hl7.org/fhir/r4/search.html#token
Specialty datatypes.JSON `gorm:"column:specialty;type:text;serializer:json" json:"specialty,omitempty"`
@ -103,7 +100,6 @@ func (s *FhirAppointment) GetSearchParameters() map[string]string {
"serviceCategory": "token",
"serviceType": "token",
"slot": "reference",
"sourceUri": "uri",
"specialty": "token",
"status": "token",
"supportingInfo": "reference",
@ -593,11 +589,6 @@ func (s *FhirAppointment) PopulateAndExtractSearchParameters(resourceRaw json.Ra
if err == nil && slotResult.String() != "undefined" {
s.Slot = []byte(slotResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Specialty
specialtyResult, err := vm.RunString(`
SpecialtyResult = window.fhirpath.evaluate(fhirResource, 'Appointment.specialty')

View File

@ -23,9 +23,6 @@ type FhirBinary struct {
// Profiles this resource claims to conform to
// https://hl7.org/fhir/r4/search.html#reference
Profile datatypes.JSON `gorm:"column:profile;type:text;serializer:json" json:"profile,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// Tags applied to this resource
// https://hl7.org/fhir/r4/search.html#token
Tag datatypes.JSON `gorm:"column:tag;type:text;serializer:json" json:"tag,omitempty"`
@ -42,7 +39,6 @@ func (s *FhirBinary) GetSearchParameters() map[string]string {
"language": "token",
"lastUpdated": "date",
"profile": "reference",
"sourceUri": "uri",
"tag": "token",
"text": "string",
"type": "special",
@ -150,11 +146,6 @@ func (s *FhirBinary) PopulateAndExtractSearchParameters(resourceRaw json.RawMess
if err == nil && profileResult.String() != "undefined" {
s.Profile = []byte(profileResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Tag
tagResult, err := vm.RunString(`
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')

View File

@ -127,9 +127,6 @@ type FhirCarePlan struct {
// CarePlan replaced by this CarePlan
// https://hl7.org/fhir/r4/search.html#reference
Replaces datatypes.JSON `gorm:"column:replaces;type:text;serializer:json" json:"replaces,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// draft | active | on-hold | revoked | completed | entered-in-error | unknown
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -169,7 +166,6 @@ func (s *FhirCarePlan) GetSearchParameters() map[string]string {
"performer": "reference",
"profile": "reference",
"replaces": "reference",
"sourceUri": "uri",
"status": "token",
"subject": "reference",
"tag": "token",
@ -638,11 +634,6 @@ func (s *FhirCarePlan) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
if err == nil && replacesResult.String() != "undefined" {
s.Replaces = []byte(replacesResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'CarePlan.status')

View File

@ -91,9 +91,6 @@ type FhirCareTeam struct {
// Profiles this resource claims to conform to
// https://hl7.org/fhir/r4/search.html#reference
Profile datatypes.JSON `gorm:"column:profile;type:text;serializer:json" json:"profile,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// proposed | active | suspended | inactive | entered-in-error
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -121,7 +118,6 @@ func (s *FhirCareTeam) GetSearchParameters() map[string]string {
"lastUpdated": "date",
"participant": "reference",
"profile": "reference",
"sourceUri": "uri",
"status": "token",
"subject": "reference",
"tag": "token",
@ -366,11 +362,6 @@ func (s *FhirCareTeam) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
if err == nil && profileResult.String() != "undefined" {
s.Profile = []byte(profileResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'CareTeam.status')

View File

@ -62,9 +62,6 @@ type FhirClaim struct {
// Provider responsible for the Claim
// https://hl7.org/fhir/r4/search.html#reference
Provider datatypes.JSON `gorm:"column:provider;type:text;serializer:json" json:"provider,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// The status of the Claim instance.
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -103,7 +100,6 @@ func (s *FhirClaim) GetSearchParameters() map[string]string {
"procedureUdi": "reference",
"profile": "reference",
"provider": "reference",
"sourceUri": "uri",
"status": "token",
"subdetailUdi": "reference",
"tag": "token",
@ -461,11 +457,6 @@ func (s *FhirClaim) PopulateAndExtractSearchParameters(resourceRaw json.RawMessa
if err == nil && providerResult.String() != "undefined" {
s.Provider = []byte(providerResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'Claim.status')

View File

@ -47,9 +47,6 @@ type FhirClaimResponse struct {
// The Provider of the claim
// https://hl7.org/fhir/r4/search.html#reference
Requestor datatypes.JSON `gorm:"column:requestor;type:text;serializer:json" json:"requestor,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// The status of the ClaimResponse
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -80,7 +77,6 @@ func (s *FhirClaimResponse) GetSearchParameters() map[string]string {
"profile": "reference",
"request": "reference",
"requestor": "reference",
"sourceUri": "uri",
"status": "token",
"tag": "token",
"text": "string",
@ -411,11 +407,6 @@ func (s *FhirClaimResponse) PopulateAndExtractSearchParameters(resourceRaw json.
if err == nil && requestorResult.String() != "undefined" {
s.Requestor = []byte(requestorResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'ClaimResponse.status')

View File

@ -130,9 +130,6 @@ type FhirComposition struct {
// Classification of section (recommended)
// https://hl7.org/fhir/r4/search.html#token
Section datatypes.JSON `gorm:"column:section;type:text;serializer:json" json:"section,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// preliminary | final | amended | entered-in-error
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -171,7 +168,6 @@ func (s *FhirComposition) GetSearchParameters() map[string]string {
"relatedId": "token",
"relatedRef": "reference",
"section": "token",
"sourceUri": "uri",
"status": "token",
"subject": "reference",
"tag": "token",
@ -660,11 +656,6 @@ func (s *FhirComposition) PopulateAndExtractSearchParameters(resourceRaw json.Ra
if err == nil && sectionResult.String() != "undefined" {
s.Section = []byte(sectionResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'Composition.status')

View File

@ -124,9 +124,6 @@ type FhirCondition struct {
// The severity of the condition
// https://hl7.org/fhir/r4/search.html#token
Severity datatypes.JSON `gorm:"column:severity;type:text;serializer:json" json:"severity,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// Simple summary (disease specific)
// https://hl7.org/fhir/r4/search.html#token
Stage datatypes.JSON `gorm:"column:stage;type:text;serializer:json" json:"stage,omitempty"`
@ -169,7 +166,6 @@ func (s *FhirCondition) GetSearchParameters() map[string]string {
"profile": "reference",
"recordedDate": "date",
"severity": "token",
"sourceUri": "uri",
"stage": "token",
"subject": "reference",
"tag": "token",
@ -818,11 +814,6 @@ func (s *FhirCondition) PopulateAndExtractSearchParameters(resourceRaw json.RawM
if err == nil && severityResult.String() != "undefined" {
s.Severity = []byte(severityResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Stage
stageResult, err := vm.RunString(`
StageResult = window.fhirpath.evaluate(fhirResource, 'Condition.stage.summary')

View File

@ -115,9 +115,6 @@ type FhirConsent struct {
// Search by reference to a Consent, DocumentReference, Contract or QuestionnaireResponse
// https://hl7.org/fhir/r4/search.html#reference
SourceReference datatypes.JSON `gorm:"column:sourceReference;type:text;serializer:json" json:"sourceReference,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// draft | proposed | active | rejected | inactive | entered-in-error
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -150,7 +147,6 @@ func (s *FhirConsent) GetSearchParameters() map[string]string {
"scope": "token",
"securityLabel": "token",
"sourceReference": "reference",
"sourceUri": "uri",
"status": "token",
"tag": "token",
"text": "string",
@ -637,11 +633,6 @@ func (s *FhirConsent) PopulateAndExtractSearchParameters(resourceRaw json.RawMes
if err == nil && sourceReferenceResult.String() != "undefined" {
s.SourceReference = []byte(sourceReferenceResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'Consent.status')

View File

@ -44,9 +44,6 @@ type FhirCoverage struct {
// Profiles this resource claims to conform to
// https://hl7.org/fhir/r4/search.html#reference
Profile datatypes.JSON `gorm:"column:profile;type:text;serializer:json" json:"profile,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// The status of the Coverage
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -76,7 +73,6 @@ func (s *FhirCoverage) GetSearchParameters() map[string]string {
"payor": "reference",
"policyHolder": "reference",
"profile": "reference",
"sourceUri": "uri",
"status": "token",
"subscriber": "reference",
"tag": "token",
@ -440,11 +436,6 @@ func (s *FhirCoverage) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
if err == nil && profileResult.String() != "undefined" {
s.Profile = []byte(profileResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'Coverage.status')

View File

@ -38,9 +38,6 @@ type FhirCoverageEligibilityRequest struct {
// The reference to the provider
// https://hl7.org/fhir/r4/search.html#reference
Provider datatypes.JSON `gorm:"column:provider;type:text;serializer:json" json:"provider,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// The status of the EligibilityRequest
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -65,7 +62,6 @@ func (s *FhirCoverageEligibilityRequest) GetSearchParameters() map[string]string
"lastUpdated": "date",
"profile": "reference",
"provider": "reference",
"sourceUri": "uri",
"status": "token",
"tag": "token",
"text": "string",
@ -276,11 +272,6 @@ func (s *FhirCoverageEligibilityRequest) PopulateAndExtractSearchParameters(reso
if err == nil && providerResult.String() != "undefined" {
s.Provider = []byte(providerResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'CoverageEligibilityRequest.status')

View File

@ -44,9 +44,6 @@ type FhirCoverageEligibilityResponse struct {
// The EligibilityRequest provider
// https://hl7.org/fhir/r4/search.html#reference
Requestor datatypes.JSON `gorm:"column:requestor;type:text;serializer:json" json:"requestor,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// The EligibilityRequest status
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -73,7 +70,6 @@ func (s *FhirCoverageEligibilityResponse) GetSearchParameters() map[string]strin
"profile": "reference",
"request": "reference",
"requestor": "reference",
"sourceUri": "uri",
"status": "token",
"tag": "token",
"text": "string",
@ -390,11 +386,6 @@ func (s *FhirCoverageEligibilityResponse) PopulateAndExtractSearchParameters(res
if err == nil && requestorResult.String() != "undefined" {
s.Requestor = []byte(requestorResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'CoverageEligibilityResponse.status')

View File

@ -41,9 +41,6 @@ type FhirDevice struct {
// Profiles this resource claims to conform to
// https://hl7.org/fhir/r4/search.html#reference
Profile datatypes.JSON `gorm:"column:profile;type:text;serializer:json" json:"profile,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// active | inactive | entered-in-error | unknown
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -78,7 +75,6 @@ func (s *FhirDevice) GetSearchParameters() map[string]string {
"model": "string",
"organization": "reference",
"profile": "reference",
"sourceUri": "uri",
"status": "token",
"tag": "token",
"text": "string",
@ -442,11 +438,6 @@ func (s *FhirDevice) PopulateAndExtractSearchParameters(resourceRaw json.RawMess
if err == nil && profileResult.String() != "undefined" {
s.Profile = []byte(profileResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'Device.status')

View File

@ -133,9 +133,6 @@ type FhirDeviceRequest struct {
// Who/what is requesting service
// https://hl7.org/fhir/r4/search.html#reference
Requester datatypes.JSON `gorm:"column:requester;type:text;serializer:json" json:"requester,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// entered-in-error | draft | active |suspended | completed
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -173,7 +170,6 @@ func (s *FhirDeviceRequest) GetSearchParameters() map[string]string {
"priorRequest": "reference",
"profile": "reference",
"requester": "reference",
"sourceUri": "uri",
"status": "token",
"subject": "reference",
"tag": "token",
@ -614,11 +610,6 @@ func (s *FhirDeviceRequest) PopulateAndExtractSearchParameters(resourceRaw json.
if err == nil && requesterResult.String() != "undefined" {
s.Requester = []byte(requesterResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'DeviceRequest.status')

View File

@ -144,9 +144,6 @@ type FhirDiagnosticReport struct {
// Who was the source of the report
// https://hl7.org/fhir/r4/search.html#reference
ResultsInterpreter datatypes.JSON `gorm:"column:resultsInterpreter;type:text;serializer:json" json:"resultsInterpreter,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// The specimen details
// https://hl7.org/fhir/r4/search.html#reference
Specimen datatypes.JSON `gorm:"column:specimen;type:text;serializer:json" json:"specimen,omitempty"`
@ -184,7 +181,6 @@ func (s *FhirDiagnosticReport) GetSearchParameters() map[string]string {
"profile": "reference",
"result": "reference",
"resultsInterpreter": "reference",
"sourceUri": "uri",
"specimen": "reference",
"status": "token",
"subject": "reference",
@ -593,11 +589,6 @@ func (s *FhirDiagnosticReport) PopulateAndExtractSearchParameters(resourceRaw js
if err == nil && resultsInterpreterResult.String() != "undefined" {
s.ResultsInterpreter = []byte(resultsInterpreterResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Specimen
specimenResult, err := vm.RunString(`
SpecimenResult = window.fhirpath.evaluate(fhirResource, 'DiagnosticReport.specimen')

View File

@ -83,9 +83,6 @@ type FhirDocumentManifest struct {
// The source system/application/software
// https://hl7.org/fhir/r4/search.html#uri
Source string `gorm:"column:source;type:text" json:"source,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// current | superseded | entered-in-error
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -117,7 +114,6 @@ func (s *FhirDocumentManifest) GetSearchParameters() map[string]string {
"relatedId": "token",
"relatedRef": "reference",
"source": "uri",
"sourceUri": "uri",
"status": "token",
"subject": "reference",
"tag": "token",
@ -454,11 +450,6 @@ func (s *FhirDocumentManifest) PopulateAndExtractSearchParameters(resourceRaw js
if err == nil && sourceResult.String() != "undefined" {
s.Source = sourceResult.String()
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'DocumentManifest.status')

View File

@ -128,9 +128,6 @@ type FhirDocumentReference struct {
// Additional details about where the content was created (e.g. clinical specialty)
// https://hl7.org/fhir/r4/search.html#token
Setting datatypes.JSON `gorm:"column:setting;type:text;serializer:json" json:"setting,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// current | superseded | entered-in-error
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -172,7 +169,6 @@ func (s *FhirDocumentReference) GetSearchParameters() map[string]string {
"relation": "token",
"securityLabel": "token",
"setting": "token",
"sourceUri": "uri",
"status": "token",
"subject": "reference",
"tag": "token",
@ -879,11 +875,6 @@ func (s *FhirDocumentReference) PopulateAndExtractSearchParameters(resourceRaw j
if err == nil && settingResult.String() != "undefined" {
s.Setting = []byte(settingResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'DocumentReference.status')

View File

@ -130,9 +130,6 @@ type FhirEncounter struct {
// The organization (facility) responsible for this encounter
// https://hl7.org/fhir/r4/search.html#reference
ServiceProvider datatypes.JSON `gorm:"column:serviceProvider;type:text;serializer:json" json:"serviceProvider,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// Wheelchair, translator, stretcher, etc.
// https://hl7.org/fhir/r4/search.html#token
SpecialArrangement datatypes.JSON `gorm:"column:specialArrangement;type:text;serializer:json" json:"specialArrangement,omitempty"`
@ -176,7 +173,6 @@ func (s *FhirEncounter) GetSearchParameters() map[string]string {
"reasonCode": "token",
"reasonReference": "reference",
"serviceProvider": "reference",
"sourceUri": "uri",
"specialArrangement": "token",
"status": "token",
"subject": "reference",
@ -660,11 +656,6 @@ func (s *FhirEncounter) PopulateAndExtractSearchParameters(resourceRaw json.RawM
if err == nil && serviceProviderResult.String() != "undefined" {
s.ServiceProvider = []byte(serviceProviderResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting SpecialArrangement
specialArrangementResult, err := vm.RunString(`
SpecialArrangementResult = window.fhirpath.evaluate(fhirResource, 'Encounter.hospitalization.specialArrangement')

View File

@ -38,9 +38,6 @@ type FhirEndpoint struct {
// Profiles this resource claims to conform to
// https://hl7.org/fhir/r4/search.html#reference
Profile datatypes.JSON `gorm:"column:profile;type:text;serializer:json" json:"profile,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// The current status of the Endpoint (usually expected to be active)
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -65,7 +62,6 @@ func (s *FhirEndpoint) GetSearchParameters() map[string]string {
"organization": "reference",
"payloadType": "token",
"profile": "reference",
"sourceUri": "uri",
"status": "token",
"tag": "token",
"text": "string",
@ -388,11 +384,6 @@ func (s *FhirEndpoint) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
if err == nil && profileResult.String() != "undefined" {
s.Profile = []byte(profileResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'Endpoint.status')

View File

@ -26,9 +26,6 @@ type FhirEnrollmentRequest struct {
// Profiles this resource claims to conform to
// https://hl7.org/fhir/r4/search.html#reference
Profile datatypes.JSON `gorm:"column:profile;type:text;serializer:json" json:"profile,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// The status of the enrollment
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -52,7 +49,6 @@ func (s *FhirEnrollmentRequest) GetSearchParameters() map[string]string {
"language": "token",
"lastUpdated": "date",
"profile": "reference",
"sourceUri": "uri",
"status": "token",
"subject": "reference",
"tag": "token",
@ -209,11 +205,6 @@ func (s *FhirEnrollmentRequest) PopulateAndExtractSearchParameters(resourceRaw j
if err == nil && profileResult.String() != "undefined" {
s.Profile = []byte(profileResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'EnrollmentRequest.status')

View File

@ -29,9 +29,6 @@ type FhirEnrollmentResponse struct {
// The reference to the claim
// https://hl7.org/fhir/r4/search.html#reference
Request datatypes.JSON `gorm:"column:request;type:text;serializer:json" json:"request,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// The status of the enrollment response
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -53,7 +50,6 @@ func (s *FhirEnrollmentResponse) GetSearchParameters() map[string]string {
"lastUpdated": "date",
"profile": "reference",
"request": "reference",
"sourceUri": "uri",
"status": "token",
"tag": "token",
"text": "string",
@ -223,11 +219,6 @@ func (s *FhirEnrollmentResponse) PopulateAndExtractSearchParameters(resourceRaw
if err == nil && requestResult.String() != "undefined" {
s.Request = []byte(requestResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'EnrollmentResponse.status')

View File

@ -65,9 +65,6 @@ type FhirExplanationOfBenefit struct {
// The reference to the provider
// https://hl7.org/fhir/r4/search.html#reference
Provider datatypes.JSON `gorm:"column:provider;type:text;serializer:json" json:"provider,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// Status of the instance
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -104,7 +101,6 @@ func (s *FhirExplanationOfBenefit) GetSearchParameters() map[string]string {
"procedureUdi": "reference",
"profile": "reference",
"provider": "reference",
"sourceUri": "uri",
"status": "token",
"subdetailUdi": "reference",
"tag": "token",
@ -487,11 +483,6 @@ func (s *FhirExplanationOfBenefit) PopulateAndExtractSearchParameters(resourceRa
if err == nil && providerResult.String() != "undefined" {
s.Provider = []byte(providerResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'ExplanationOfBenefit.status')

View File

@ -114,9 +114,6 @@ type FhirFamilyMemberHistory struct {
// A search by a sex code of a family member
// https://hl7.org/fhir/r4/search.html#token
Sex datatypes.JSON `gorm:"column:sex;type:text;serializer:json" json:"sex,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// partial | completed | entered-in-error | health-unknown
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -143,7 +140,6 @@ func (s *FhirFamilyMemberHistory) GetSearchParameters() map[string]string {
"profile": "reference",
"relationship": "token",
"sex": "token",
"sourceUri": "uri",
"status": "token",
"tag": "token",
"text": "string",
@ -472,11 +468,6 @@ func (s *FhirFamilyMemberHistory) PopulateAndExtractSearchParameters(resourceRaw
if err == nil && sexResult.String() != "undefined" {
s.Sex = []byte(sexResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'FamilyMemberHistory.status')

View File

@ -68,9 +68,6 @@ type FhirGoal struct {
// Profiles this resource claims to conform to
// https://hl7.org/fhir/r4/search.html#reference
Profile datatypes.JSON `gorm:"column:profile;type:text;serializer:json" json:"profile,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// When goal pursuit begins
// https://hl7.org/fhir/r4/search.html#date
StartDate *time.Time `gorm:"column:startDate;type:datetime" json:"startDate,omitempty"`
@ -100,7 +97,6 @@ func (s *FhirGoal) GetSearchParameters() map[string]string {
"lastUpdated": "date",
"lifecycleStatus": "token",
"profile": "reference",
"sourceUri": "uri",
"startDate": "date",
"subject": "reference",
"tag": "token",
@ -399,11 +395,6 @@ func (s *FhirGoal) PopulateAndExtractSearchParameters(resourceRaw json.RawMessag
if err == nil && profileResult.String() != "undefined" {
s.Profile = []byte(profileResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting StartDate
startDateResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, '(Goal.startDate)')[0]")
if err == nil && startDateResult.String() != "undefined" {

View File

@ -95,9 +95,6 @@ type FhirImagingStudy struct {
// DICOM Series Instance UID for a series
// https://hl7.org/fhir/r4/search.html#token
Series datatypes.JSON `gorm:"column:series;type:text;serializer:json" json:"series,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// When the study was started
// https://hl7.org/fhir/r4/search.html#date
Started *time.Time `gorm:"column:started;type:datetime" json:"started,omitempty"`
@ -136,7 +133,6 @@ func (s *FhirImagingStudy) GetSearchParameters() map[string]string {
"reason": "token",
"referrer": "reference",
"series": "token",
"sourceUri": "uri",
"started": "date",
"status": "token",
"subject": "reference",
@ -660,11 +656,6 @@ func (s *FhirImagingStudy) PopulateAndExtractSearchParameters(resourceRaw json.R
if err == nil && seriesResult.String() != "undefined" {
s.Series = []byte(seriesResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Started
startedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'ImagingStudy.started')[0]")
if err == nil && startedResult.String() != "undefined" {

View File

@ -109,9 +109,6 @@ type FhirImmunization struct {
// The series being followed by the provider
// https://hl7.org/fhir/r4/search.html#string
Series datatypes.JSON `gorm:"column:series;type:text;serializer:json" json:"series,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// Immunization event status
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -151,7 +148,6 @@ func (s *FhirImmunization) GetSearchParameters() map[string]string {
"reasonCode": "token",
"reasonReference": "reference",
"series": "string",
"sourceUri": "uri",
"status": "token",
"statusReason": "token",
"tag": "token",
@ -571,11 +567,6 @@ func (s *FhirImmunization) PopulateAndExtractSearchParameters(resourceRaw json.R
if err == nil && seriesResult.String() != "undefined" {
s.Series = []byte(seriesResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'Immunization.status')

View File

@ -59,9 +59,6 @@ type FhirInsurancePlan struct {
// Profiles this resource claims to conform to
// https://hl7.org/fhir/r4/search.html#reference
Profile datatypes.JSON `gorm:"column:profile;type:text;serializer:json" json:"profile,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// Is the Organization record active
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -93,7 +90,6 @@ func (s *FhirInsurancePlan) GetSearchParameters() map[string]string {
"ownedBy": "reference",
"phonetic": "string",
"profile": "reference",
"sourceUri": "uri",
"status": "token",
"tag": "token",
"text": "string",
@ -751,11 +747,6 @@ func (s *FhirInsurancePlan) PopulateAndExtractSearchParameters(resourceRaw json.
if err == nil && profileResult.String() != "undefined" {
s.Profile = []byte(profileResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'InsurancePlan.status')

View File

@ -59,9 +59,6 @@ type FhirLocation struct {
// Profiles this resource claims to conform to
// https://hl7.org/fhir/r4/search.html#reference
Profile datatypes.JSON `gorm:"column:profile;type:text;serializer:json" json:"profile,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// Searches for locations with a specific kind of status
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -93,7 +90,6 @@ func (s *FhirLocation) GetSearchParameters() map[string]string {
"organization": "reference",
"partof": "reference",
"profile": "reference",
"sourceUri": "uri",
"status": "token",
"tag": "token",
"text": "string",
@ -739,11 +735,6 @@ func (s *FhirLocation) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
if err == nil && profileResult.String() != "undefined" {
s.Profile = []byte(profileResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'Location.status')

View File

@ -47,9 +47,6 @@ type FhirMedia struct {
// Observed body part
// https://hl7.org/fhir/r4/search.html#token
Site datatypes.JSON `gorm:"column:site;type:text;serializer:json" json:"site,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -83,7 +80,6 @@ func (s *FhirMedia) GetSearchParameters() map[string]string {
"operator": "reference",
"profile": "reference",
"site": "token",
"sourceUri": "uri",
"status": "token",
"subject": "reference",
"tag": "token",
@ -404,11 +400,6 @@ func (s *FhirMedia) PopulateAndExtractSearchParameters(resourceRaw json.RawMessa
if err == nil && siteResult.String() != "undefined" {
s.Site = []byte(siteResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'Media.status')

View File

@ -64,9 +64,6 @@ type FhirMedication struct {
// Profiles this resource claims to conform to
// https://hl7.org/fhir/r4/search.html#reference
Profile datatypes.JSON `gorm:"column:profile;type:text;serializer:json" json:"profile,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// Returns medications for this status
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -94,7 +91,6 @@ func (s *FhirMedication) GetSearchParameters() map[string]string {
"lotNumber": "token",
"manufacturer": "reference",
"profile": "reference",
"sourceUri": "uri",
"status": "token",
"tag": "token",
"text": "string",
@ -479,11 +475,6 @@ func (s *FhirMedication) PopulateAndExtractSearchParameters(resourceRaw json.Raw
if err == nil && profileResult.String() != "undefined" {
s.Profile = []byte(profileResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'Medication.status')

View File

@ -110,9 +110,6 @@ type FhirMedicationAdministration struct {
// The identity of a request to list administrations from
// https://hl7.org/fhir/r4/search.html#reference
Request datatypes.JSON `gorm:"column:request;type:text;serializer:json" json:"request,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
/*
Multiple Resources:
@ -152,7 +149,6 @@ func (s *FhirMedicationAdministration) GetSearchParameters() map[string]string {
"reasonGiven": "token",
"reasonNotGiven": "token",
"request": "reference",
"sourceUri": "uri",
"status": "token",
"subject": "reference",
"tag": "token",
@ -533,11 +529,6 @@ func (s *FhirMedicationAdministration) PopulateAndExtractSearchParameters(resour
if err == nil && requestResult.String() != "undefined" {
s.Request = []byte(requestResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationStatement.status')

View File

@ -111,9 +111,6 @@ type FhirMedicationDispense struct {
// Returns dispenses with the specified responsible party
// https://hl7.org/fhir/r4/search.html#reference
Responsibleparty datatypes.JSON `gorm:"column:responsibleparty;type:text;serializer:json" json:"responsibleparty,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
/*
Multiple Resources:
@ -158,7 +155,6 @@ func (s *FhirMedicationDispense) GetSearchParameters() map[string]string {
"profile": "reference",
"receiver": "reference",
"responsibleparty": "reference",
"sourceUri": "uri",
"status": "token",
"subject": "reference",
"tag": "token",
@ -462,11 +458,6 @@ func (s *FhirMedicationDispense) PopulateAndExtractSearchParameters(resourceRaw
if err == nil && responsiblepartyResult.String() != "undefined" {
s.Responsibleparty = []byte(responsiblepartyResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationStatement.status')

View File

@ -127,9 +127,6 @@ type FhirMedicationRequest struct {
// Returns prescriptions prescribed by this prescriber
// https://hl7.org/fhir/r4/search.html#reference
Requester datatypes.JSON `gorm:"column:requester;type:text;serializer:json" json:"requester,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
/*
Multiple Resources:
@ -172,7 +169,6 @@ func (s *FhirMedicationRequest) GetSearchParameters() map[string]string {
"priority": "token",
"profile": "reference",
"requester": "reference",
"sourceUri": "uri",
"status": "token",
"subject": "reference",
"tag": "token",
@ -660,11 +656,6 @@ func (s *FhirMedicationRequest) PopulateAndExtractSearchParameters(resourceRaw j
if err == nil && requesterResult.String() != "undefined" {
s.Requester = []byte(requesterResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationStatement.status')

View File

@ -104,9 +104,6 @@ type FhirMedicationStatement struct {
// Who or where the information in the statement came from
// https://hl7.org/fhir/r4/search.html#reference
Source datatypes.JSON `gorm:"column:source;type:text;serializer:json" json:"source,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
/*
Multiple Resources:
@ -144,7 +141,6 @@ func (s *FhirMedicationStatement) GetSearchParameters() map[string]string {
"partOf": "reference",
"profile": "reference",
"source": "reference",
"sourceUri": "uri",
"status": "token",
"subject": "reference",
"tag": "token",
@ -464,11 +460,6 @@ func (s *FhirMedicationStatement) PopulateAndExtractSearchParameters(resourceRaw
if err == nil && sourceResult.String() != "undefined" {
s.Source = []byte(sourceResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'MedicationAdministration.status | MedicationDispense.status | MedicationRequest.status | MedicationStatement.status')

View File

@ -98,9 +98,6 @@ type FhirNutritionOrder struct {
// The identity of the provider who placed the nutrition order
// https://hl7.org/fhir/r4/search.html#reference
Provider datatypes.JSON `gorm:"column:provider;type:text;serializer:json" json:"provider,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// Status of the nutrition order.
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -132,7 +129,6 @@ func (s *FhirNutritionOrder) GetSearchParameters() map[string]string {
"oraldiet": "token",
"profile": "reference",
"provider": "reference",
"sourceUri": "uri",
"status": "token",
"supplement": "token",
"tag": "token",
@ -490,11 +486,6 @@ func (s *FhirNutritionOrder) PopulateAndExtractSearchParameters(resourceRaw json
if err == nil && providerResult.String() != "undefined" {
s.Provider = []byte(providerResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'NutritionOrder.status')

View File

@ -174,9 +174,6 @@ type FhirObservation struct {
// Profiles this resource claims to conform to
// https://hl7.org/fhir/r4/search.html#reference
Profile datatypes.JSON `gorm:"column:profile;type:text;serializer:json" json:"profile,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// Specimen used for this observation
// https://hl7.org/fhir/r4/search.html#reference
Specimen datatypes.JSON `gorm:"column:specimen;type:text;serializer:json" json:"specimen,omitempty"`
@ -236,7 +233,6 @@ func (s *FhirObservation) GetSearchParameters() map[string]string {
"partOf": "reference",
"performer": "reference",
"profile": "reference",
"sourceUri": "uri",
"specimen": "reference",
"status": "token",
"subject": "reference",
@ -1003,11 +999,6 @@ func (s *FhirObservation) PopulateAndExtractSearchParameters(resourceRaw json.Ra
if err == nil && profileResult.String() != "undefined" {
s.Profile = []byte(profileResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Specimen
specimenResult, err := vm.RunString(`
SpecimenResult = window.fhirpath.evaluate(fhirResource, 'Observation.specimen')

View File

@ -59,9 +59,6 @@ type FhirOrganization struct {
// Profiles this resource claims to conform to
// https://hl7.org/fhir/r4/search.html#reference
Profile datatypes.JSON `gorm:"column:profile;type:text;serializer:json" json:"profile,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// Tags applied to this resource
// https://hl7.org/fhir/r4/search.html#token
Tag datatypes.JSON `gorm:"column:tag;type:text;serializer:json" json:"tag,omitempty"`
@ -90,7 +87,6 @@ func (s *FhirOrganization) GetSearchParameters() map[string]string {
"partof": "reference",
"phonetic": "string",
"profile": "reference",
"sourceUri": "uri",
"tag": "token",
"text": "string",
"type": "special",
@ -780,11 +776,6 @@ func (s *FhirOrganization) PopulateAndExtractSearchParameters(resourceRaw json.R
if err == nil && profileResult.String() != "undefined" {
s.Profile = []byte(profileResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Tag
tagResult, err := vm.RunString(`
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')

View File

@ -59,9 +59,6 @@ type FhirOrganizationAffiliation struct {
// Healthcare services provided through the role
// https://hl7.org/fhir/r4/search.html#reference
Service datatypes.JSON `gorm:"column:service;type:text;serializer:json" json:"service,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// Specific specialty of the participatingOrganization in the context of the role
// https://hl7.org/fhir/r4/search.html#token
Specialty datatypes.JSON `gorm:"column:specialty;type:text;serializer:json" json:"specialty,omitempty"`
@ -96,7 +93,6 @@ func (s *FhirOrganizationAffiliation) GetSearchParameters() map[string]string {
"profile": "reference",
"role": "token",
"service": "reference",
"sourceUri": "uri",
"specialty": "token",
"tag": "token",
"telecom": "token",
@ -538,11 +534,6 @@ func (s *FhirOrganizationAffiliation) PopulateAndExtractSearchParameters(resourc
if err == nil && serviceResult.String() != "undefined" {
s.Service = []byte(serviceResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Specialty
specialtyResult, err := vm.RunString(`
SpecialtyResult = window.fhirpath.evaluate(fhirResource, 'OrganizationAffiliation.specialty')

View File

@ -174,9 +174,6 @@ type FhirPatient struct {
// Profiles this resource claims to conform to
// https://hl7.org/fhir/r4/search.html#reference
Profile datatypes.JSON `gorm:"column:profile;type:text;serializer:json" json:"profile,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// Tags applied to this resource
// https://hl7.org/fhir/r4/search.html#token
Tag datatypes.JSON `gorm:"column:tag;type:text;serializer:json" json:"tag,omitempty"`
@ -225,7 +222,6 @@ func (s *FhirPatient) GetSearchParameters() map[string]string {
"phone": "token",
"phonetic": "string",
"profile": "reference",
"sourceUri": "uri",
"tag": "token",
"telecom": "token",
"text": "string",
@ -1262,11 +1258,6 @@ func (s *FhirPatient) PopulateAndExtractSearchParameters(resourceRaw json.RawMes
if err == nil && profileResult.String() != "undefined" {
s.Profile = []byte(profileResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Tag
tagResult, err := vm.RunString(`
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')

View File

@ -152,9 +152,6 @@ type FhirPerson struct {
// The Person links to this RelatedPerson
// https://hl7.org/fhir/r4/search.html#reference
Relatedperson datatypes.JSON `gorm:"column:relatedperson;type:text;serializer:json" json:"relatedperson,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// Tags applied to this resource
// https://hl7.org/fhir/r4/search.html#token
Tag datatypes.JSON `gorm:"column:tag;type:text;serializer:json" json:"tag,omitempty"`
@ -199,7 +196,6 @@ func (s *FhirPerson) GetSearchParameters() map[string]string {
"practitioner": "reference",
"profile": "reference",
"relatedperson": "reference",
"sourceUri": "uri",
"tag": "token",
"telecom": "token",
"text": "string",
@ -1025,11 +1021,6 @@ func (s *FhirPerson) PopulateAndExtractSearchParameters(resourceRaw json.RawMess
if err == nil && relatedpersonResult.String() != "undefined" {
s.Relatedperson = []byte(relatedpersonResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Tag
tagResult, err := vm.RunString(`
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')

View File

@ -153,9 +153,6 @@ type FhirPractitioner struct {
// Profiles this resource claims to conform to
// https://hl7.org/fhir/r4/search.html#reference
Profile datatypes.JSON `gorm:"column:profile;type:text;serializer:json" json:"profile,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// Tags applied to this resource
// https://hl7.org/fhir/r4/search.html#token
Tag datatypes.JSON `gorm:"column:tag;type:text;serializer:json" json:"tag,omitempty"`
@ -199,7 +196,6 @@ func (s *FhirPractitioner) GetSearchParameters() map[string]string {
"phone": "token",
"phonetic": "string",
"profile": "reference",
"sourceUri": "uri",
"tag": "token",
"telecom": "token",
"text": "string",
@ -1168,11 +1164,6 @@ func (s *FhirPractitioner) PopulateAndExtractSearchParameters(resourceRaw json.R
if err == nil && profileResult.String() != "undefined" {
s.Profile = []byte(profileResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Tag
tagResult, err := vm.RunString(`
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')

View File

@ -72,9 +72,6 @@ type FhirPractitionerRole struct {
// The list of healthcare services that this worker provides for this role's Organization/Location(s)
// https://hl7.org/fhir/r4/search.html#reference
Service datatypes.JSON `gorm:"column:service;type:text;serializer:json" json:"service,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// The practitioner has this specialty at an organization
// https://hl7.org/fhir/r4/search.html#token
Specialty datatypes.JSON `gorm:"column:specialty;type:text;serializer:json" json:"specialty,omitempty"`
@ -116,7 +113,6 @@ func (s *FhirPractitionerRole) GetSearchParameters() map[string]string {
"profile": "reference",
"role": "token",
"service": "reference",
"sourceUri": "uri",
"specialty": "token",
"tag": "token",
"telecom": "token",
@ -544,11 +540,6 @@ func (s *FhirPractitionerRole) PopulateAndExtractSearchParameters(resourceRaw js
if err == nil && serviceResult.String() != "undefined" {
s.Service = []byte(serviceResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Specialty
specialtyResult, err := vm.RunString(`
SpecialtyResult = window.fhirpath.evaluate(fhirResource, 'PractitionerRole.specialty')

View File

@ -147,9 +147,6 @@ type FhirProcedure struct {
// The justification that the procedure was performed
// https://hl7.org/fhir/r4/search.html#reference
ReasonReference datatypes.JSON `gorm:"column:reasonReference;type:text;serializer:json" json:"reasonReference,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// preparation | in-progress | not-done | on-hold | stopped | completed | entered-in-error | unknown
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -185,7 +182,6 @@ func (s *FhirProcedure) GetSearchParameters() map[string]string {
"profile": "reference",
"reasonCode": "token",
"reasonReference": "reference",
"sourceUri": "uri",
"status": "token",
"subject": "reference",
"tag": "token",
@ -599,11 +595,6 @@ func (s *FhirProcedure) PopulateAndExtractSearchParameters(resourceRaw json.RawM
if err == nil && reasonReferenceResult.String() != "undefined" {
s.ReasonReference = []byte(reasonReferenceResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'Procedure.status')

View File

@ -44,9 +44,6 @@ type FhirProvenance struct {
// Indication of the reason the entity signed the object(s)
// https://hl7.org/fhir/r4/search.html#token
SignatureType datatypes.JSON `gorm:"column:signatureType;type:text;serializer:json" json:"signatureType,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// Tags applied to this resource
// https://hl7.org/fhir/r4/search.html#token
Tag datatypes.JSON `gorm:"column:tag;type:text;serializer:json" json:"tag,omitempty"`
@ -76,7 +73,6 @@ func (s *FhirProvenance) GetSearchParameters() map[string]string {
"profile": "reference",
"recorded": "date",
"signatureType": "token",
"sourceUri": "uri",
"tag": "token",
"target": "reference",
"text": "string",
@ -382,11 +378,6 @@ func (s *FhirProvenance) PopulateAndExtractSearchParameters(resourceRaw json.Raw
if err == nil && signatureTypeResult.String() != "undefined" {
s.SignatureType = []byte(signatureTypeResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Tag
tagResult, err := vm.RunString(`
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')

View File

@ -59,9 +59,6 @@ type FhirQuestionnaire struct {
// Name of the publisher of the questionnaire
// https://hl7.org/fhir/r4/search.html#string
Publisher datatypes.JSON `gorm:"column:publisher;type:text;serializer:json" json:"publisher,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// The current status of the questionnaire
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -105,7 +102,6 @@ func (s *FhirQuestionnaire) GetSearchParameters() map[string]string {
"name": "string",
"profile": "reference",
"publisher": "string",
"sourceUri": "uri",
"status": "token",
"subjectType": "token",
"tag": "token",
@ -666,11 +662,6 @@ func (s *FhirQuestionnaire) PopulateAndExtractSearchParameters(resourceRaw json.
if err == nil && publisherResult.String() != "undefined" {
s.Publisher = []byte(publisherResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'Questionnaire.status')

View File

@ -47,9 +47,6 @@ type FhirQuestionnaireResponse struct {
// The individual providing the information reflected in the questionnaire respose
// https://hl7.org/fhir/r4/search.html#reference
Source datatypes.JSON `gorm:"column:source;type:text;serializer:json" json:"source,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// The status of the questionnaire response
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -80,7 +77,6 @@ func (s *FhirQuestionnaireResponse) GetSearchParameters() map[string]string {
"profile": "reference",
"questionnaire": "reference",
"source": "reference",
"sourceUri": "uri",
"status": "token",
"subject": "reference",
"tag": "token",
@ -334,11 +330,6 @@ func (s *FhirQuestionnaireResponse) PopulateAndExtractSearchParameters(resourceR
if err == nil && sourceResult.String() != "undefined" {
s.Source = []byte(sourceResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'QuestionnaireResponse.status')

View File

@ -146,9 +146,6 @@ type FhirRelatedPerson struct {
// The relationship between the patient and the relatedperson
// https://hl7.org/fhir/r4/search.html#token
Relationship datatypes.JSON `gorm:"column:relationship;type:text;serializer:json" json:"relationship,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// Tags applied to this resource
// https://hl7.org/fhir/r4/search.html#token
Tag datatypes.JSON `gorm:"column:tag;type:text;serializer:json" json:"tag,omitempty"`
@ -191,7 +188,6 @@ func (s *FhirRelatedPerson) GetSearchParameters() map[string]string {
"phonetic": "string",
"profile": "reference",
"relationship": "token",
"sourceUri": "uri",
"tag": "token",
"telecom": "token",
"text": "string",
@ -1055,11 +1051,6 @@ func (s *FhirRelatedPerson) PopulateAndExtractSearchParameters(resourceRaw json.
if err == nil && relationshipResult.String() != "undefined" {
s.Relationship = []byte(relationshipResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Tag
tagResult, err := vm.RunString(`
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')

View File

@ -41,9 +41,6 @@ type FhirSchedule struct {
// The type of appointments that can be booked into associated slot(s)
// https://hl7.org/fhir/r4/search.html#token
ServiceType datatypes.JSON `gorm:"column:serviceType;type:text;serializer:json" json:"serviceType,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// Type of specialty needed
// https://hl7.org/fhir/r4/search.html#token
Specialty datatypes.JSON `gorm:"column:specialty;type:text;serializer:json" json:"specialty,omitempty"`
@ -69,7 +66,6 @@ func (s *FhirSchedule) GetSearchParameters() map[string]string {
"profile": "reference",
"serviceCategory": "token",
"serviceType": "token",
"sourceUri": "uri",
"specialty": "token",
"tag": "token",
"text": "string",
@ -393,11 +389,6 @@ func (s *FhirSchedule) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
if err == nil && serviceTypeResult.String() != "undefined" {
s.ServiceType = []byte(serviceTypeResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Specialty
specialtyResult, err := vm.RunString(`
SpecialtyResult = window.fhirpath.evaluate(fhirResource, 'Schedule.specialty')

View File

@ -139,9 +139,6 @@ type FhirServiceRequest struct {
// Composite Request ID
// https://hl7.org/fhir/r4/search.html#token
Requisition datatypes.JSON `gorm:"column:requisition;type:text;serializer:json" json:"requisition,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// Specimen to be tested
// https://hl7.org/fhir/r4/search.html#reference
Specimen datatypes.JSON `gorm:"column:specimen;type:text;serializer:json" json:"specimen,omitempty"`
@ -184,7 +181,6 @@ func (s *FhirServiceRequest) GetSearchParameters() map[string]string {
"replaces": "reference",
"requester": "reference",
"requisition": "token",
"sourceUri": "uri",
"specimen": "reference",
"status": "token",
"subject": "reference",
@ -786,11 +782,6 @@ func (s *FhirServiceRequest) PopulateAndExtractSearchParameters(resourceRaw json
if err == nil && requisitionResult.String() != "undefined" {
s.Requisition = []byte(requisitionResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Specimen
specimenResult, err := vm.RunString(`
SpecimenResult = window.fhirpath.evaluate(fhirResource, 'ServiceRequest.specimen')

View File

@ -38,9 +38,6 @@ type FhirSlot struct {
// The type of appointments that can be booked into the slot
// https://hl7.org/fhir/r4/search.html#token
ServiceType datatypes.JSON `gorm:"column:serviceType;type:text;serializer:json" json:"serviceType,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// The specialty of a practitioner that would be required to perform the service requested in this appointment
// https://hl7.org/fhir/r4/search.html#token
Specialty datatypes.JSON `gorm:"column:specialty;type:text;serializer:json" json:"specialty,omitempty"`
@ -71,7 +68,6 @@ func (s *FhirSlot) GetSearchParameters() map[string]string {
"schedule": "reference",
"serviceCategory": "token",
"serviceType": "token",
"sourceUri": "uri",
"specialty": "token",
"start": "date",
"status": "token",
@ -384,11 +380,6 @@ func (s *FhirSlot) PopulateAndExtractSearchParameters(resourceRaw json.RawMessag
if err == nil && serviceTypeResult.String() != "undefined" {
s.ServiceType = []byte(serviceTypeResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Specialty
specialtyResult, err := vm.RunString(`
SpecialtyResult = window.fhirpath.evaluate(fhirResource, 'Slot.specialty')

View File

@ -47,9 +47,6 @@ type FhirSpecimen struct {
// Profiles this resource claims to conform to
// https://hl7.org/fhir/r4/search.html#reference
Profile datatypes.JSON `gorm:"column:profile;type:text;serializer:json" json:"profile,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// available | unavailable | unsatisfactory | entered-in-error
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -80,7 +77,6 @@ func (s *FhirSpecimen) GetSearchParameters() map[string]string {
"lastUpdated": "date",
"parent": "reference",
"profile": "reference",
"sourceUri": "uri",
"status": "token",
"subject": "reference",
"tag": "token",
@ -466,11 +462,6 @@ func (s *FhirSpecimen) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
if err == nil && profileResult.String() != "undefined" {
s.Profile = []byte(profileResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'Specimen.status')

View File

@ -83,9 +83,6 @@ type FhirVisionPrescription struct {
// Profiles this resource claims to conform to
// https://hl7.org/fhir/r4/search.html#reference
Profile datatypes.JSON `gorm:"column:profile;type:text;serializer:json" json:"profile,omitempty"`
// Identifies where the resource comes from
// https://hl7.org/fhir/r4/search.html#uri
SourceUri string `gorm:"column:sourceUri;type:text" json:"sourceUri,omitempty"`
// The status of the vision prescription
// https://hl7.org/fhir/r4/search.html#token
Status datatypes.JSON `gorm:"column:status;type:text;serializer:json" json:"status,omitempty"`
@ -109,7 +106,6 @@ func (s *FhirVisionPrescription) GetSearchParameters() map[string]string {
"lastUpdated": "date",
"prescriber": "reference",
"profile": "reference",
"sourceUri": "uri",
"status": "token",
"tag": "token",
"text": "string",
@ -306,11 +302,6 @@ func (s *FhirVisionPrescription) PopulateAndExtractSearchParameters(resourceRaw
if err == nil && profileResult.String() != "undefined" {
s.Profile = []byte(profileResult.String())
}
// extracting SourceUri
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
if err == nil && sourceUriResult.String() != "undefined" {
s.SourceUri = sourceUriResult.String()
}
// extracting Status
statusResult, err := vm.RunString(`
StatusResult = window.fhirpath.evaluate(fhirResource, 'VisionPrescription.status')

View File

@ -123,11 +123,6 @@ func main() {
Description: "Profiles this resource claims to conform to",
FHIRPathExpression: "Resource.meta.profile",
}
fieldMap["SourceUri"] = DBField{
FieldType: "uri",
Description: "Identifies where the resource comes from",
FHIRPathExpression: "Resource.meta.source",
}
fieldMap["Tag"] = DBField{
FieldType: "token",
Description: "Tags applied to this resource",

View File

@ -13,6 +13,7 @@ type IFhirResourceModel interface {
SetResourceRaw(resourceRaw datatypes.JSON)
SetSortTitle(sortTitle *string)
SetSortDate(sortDate *time.Time)
SetSourceUri(sourceUri *string)
GetSearchParameters() map[string]string
PopulateAndExtractSearchParameters(rawResource json.RawMessage) error
}

View File

@ -10,6 +10,7 @@ type ResourceBase struct {
SortDate *time.Time `json:"sort_date" gorm:"sort_date"`
SortTitle *string `json:"sort_title" gorm:"sort_title"`
SourceUri *string `json:"source_uri" gorm:"source_uri"`
// The raw resource content in JSON format
ResourceRaw datatypes.JSON `gorm:"column:resource_raw;type:text;serializer:json" json:"resource_raw,omitempty"`
@ -32,3 +33,7 @@ func (s *ResourceBase) SetSortDate(sortDate *time.Time) {
func (s *ResourceBase) SetResourceRaw(resourceRaw datatypes.JSON) {
s.ResourceRaw = resourceRaw
}
func (s *ResourceBase) SetSourceUri(sourceUri *string) {
s.SourceUri = sourceUri
}

View File

@ -75,7 +75,7 @@ func UnsafeRequestSource(c *gin.Context) {
//make sure we include all query string parameters with the raw request.
parsedUrl.RawQuery = c.Request.URL.Query().Encode()
err = client.GetRequest(parsedUrl.String(), &resp)
_, err = client.GetRequest(parsedUrl.String(), &resp)
if err != nil {
logger.Errorf("Error making raw request, %v", err)
c.JSON(http.StatusInternalServerError, gin.H{"success": false, "error": err.Error(), "data": resp})