removing Resource. segment of FHIRpath expressions (not supported)
This commit is contained in:
parent
ddbf65080d
commit
4dad809f19
|
@ -149,7 +149,7 @@ func (s *FhirAccount) PopulateAndExtractSearchParameters(resourceRaw json.RawMes
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -195,7 +195,7 @@ func (s *FhirAccount) PopulateAndExtractSearchParameters(resourceRaw json.RawMes
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -284,11 +284,11 @@ func (s *FhirAccount) PopulateAndExtractSearchParameters(resourceRaw json.RawMes
|
|||
}
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -345,7 +345,7 @@ func (s *FhirAccount) PopulateAndExtractSearchParameters(resourceRaw json.RawMes
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -280,7 +280,7 @@ func (s *FhirAdverseEvent) PopulateAndExtractSearchParameters(resourceRaw json.R
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -326,7 +326,7 @@ func (s *FhirAdverseEvent) PopulateAndExtractSearchParameters(resourceRaw json.R
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -343,7 +343,7 @@ func (s *FhirAdverseEvent) PopulateAndExtractSearchParameters(resourceRaw json.R
|
|||
if err == nil && locationResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Recorder
|
||||
|
@ -449,7 +449,7 @@ func (s *FhirAdverseEvent) PopulateAndExtractSearchParameters(resourceRaw json.R
|
|||
s.Severity = []byte(severityResult.String())
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -467,7 +467,7 @@ func (s *FhirAdverseEvent) PopulateAndExtractSearchParameters(resourceRaw json.R
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -456,7 +456,7 @@ func (s *FhirAllergyIntolerance) PopulateAndExtractSearchParameters(resourceRaw
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -515,7 +515,7 @@ func (s *FhirAllergyIntolerance) PopulateAndExtractSearchParameters(resourceRaw
|
|||
}
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -588,7 +588,7 @@ func (s *FhirAllergyIntolerance) PopulateAndExtractSearchParameters(resourceRaw
|
|||
}
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Recorder
|
||||
|
@ -690,13 +690,13 @@ func (s *FhirAllergyIntolerance) PopulateAndExtractSearchParameters(resourceRaw
|
|||
s.Severity = []byte(severityResult.String())
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
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, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -257,7 +257,7 @@ func (s *FhirAppointment) PopulateAndExtractSearchParameters(resourceRaw json.Ra
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -303,7 +303,7 @@ func (s *FhirAppointment) PopulateAndExtractSearchParameters(resourceRaw json.Ra
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -371,7 +371,7 @@ func (s *FhirAppointment) PopulateAndExtractSearchParameters(resourceRaw json.Ra
|
|||
if err == nil && practitionerResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting ReasonCode
|
||||
|
@ -524,7 +524,7 @@ func (s *FhirAppointment) PopulateAndExtractSearchParameters(resourceRaw json.Ra
|
|||
if err == nil && slotResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -628,7 +628,7 @@ func (s *FhirAppointment) PopulateAndExtractSearchParameters(resourceRaw json.Ra
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -78,7 +78,7 @@ func (s *FhirBinary) PopulateAndExtractSearchParameters(resourceRaw json.RawMess
|
|||
// execute the fhirpath expression for each search parameter
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -124,7 +124,7 @@ func (s *FhirBinary) PopulateAndExtractSearchParameters(resourceRaw json.RawMess
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -137,17 +137,17 @@ func (s *FhirBinary) PopulateAndExtractSearchParameters(resourceRaw json.RawMess
|
|||
}
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
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, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -454,7 +454,7 @@ func (s *FhirCarePlan) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -500,7 +500,7 @@ func (s *FhirCarePlan) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -521,7 +521,7 @@ func (s *FhirCarePlan) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
if err == nil && performerResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Replaces
|
||||
|
@ -529,7 +529,7 @@ func (s *FhirCarePlan) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
if err == nil && replacesResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -586,7 +586,7 @@ func (s *FhirCarePlan) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -270,7 +270,7 @@ func (s *FhirCareTeam) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -316,7 +316,7 @@ func (s *FhirCareTeam) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -333,11 +333,11 @@ func (s *FhirCareTeam) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
if err == nil && participantResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -394,7 +394,7 @@ func (s *FhirCareTeam) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -230,7 +230,7 @@ func (s *FhirClaim) PopulateAndExtractSearchParameters(resourceRaw json.RawMessa
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -276,7 +276,7 @@ func (s *FhirClaim) PopulateAndExtractSearchParameters(resourceRaw json.RawMessa
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -344,7 +344,7 @@ func (s *FhirClaim) PopulateAndExtractSearchParameters(resourceRaw json.RawMessa
|
|||
if err == nil && procedureUdiResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Provider
|
||||
|
@ -352,7 +352,7 @@ func (s *FhirClaim) PopulateAndExtractSearchParameters(resourceRaw json.RawMessa
|
|||
if err == nil && providerResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -409,7 +409,7 @@ func (s *FhirClaim) PopulateAndExtractSearchParameters(resourceRaw json.RawMessa
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -241,7 +241,7 @@ func (s *FhirClaimResponse) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -287,7 +287,7 @@ func (s *FhirClaimResponse) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -360,7 +360,7 @@ func (s *FhirClaimResponse) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
}
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Request
|
||||
|
@ -372,7 +372,7 @@ func (s *FhirClaimResponse) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
if err == nil && requestorResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -425,7 +425,7 @@ func (s *FhirClaimResponse) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -427,7 +427,7 @@ func (s *FhirComposition) PopulateAndExtractSearchParameters(resourceRaw json.Ra
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -473,7 +473,7 @@ func (s *FhirComposition) PopulateAndExtractSearchParameters(resourceRaw json.Ra
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -499,7 +499,7 @@ func (s *FhirComposition) PopulateAndExtractSearchParameters(resourceRaw json.Ra
|
|||
}
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting RelatedId
|
||||
|
@ -601,7 +601,7 @@ func (s *FhirComposition) PopulateAndExtractSearchParameters(resourceRaw json.Ra
|
|||
s.Section = []byte(sectionResult.String())
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -658,7 +658,7 @@ func (s *FhirComposition) PopulateAndExtractSearchParameters(resourceRaw json.Ra
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -579,7 +579,7 @@ func (s *FhirCondition) PopulateAndExtractSearchParameters(resourceRaw json.RawM
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -625,7 +625,7 @@ func (s *FhirCondition) PopulateAndExtractSearchParameters(resourceRaw json.RawM
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -715,7 +715,7 @@ func (s *FhirCondition) PopulateAndExtractSearchParameters(resourceRaw json.RawM
|
|||
s.OnsetInfo = []byte(onsetInfoResult.String())
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting RecordedDate
|
||||
|
@ -779,7 +779,7 @@ func (s *FhirCondition) PopulateAndExtractSearchParameters(resourceRaw json.RawM
|
|||
s.Severity = []byte(severityResult.String())
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -836,7 +836,7 @@ func (s *FhirCondition) PopulateAndExtractSearchParameters(resourceRaw json.RawM
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -353,7 +353,7 @@ func (s *FhirConsent) PopulateAndExtractSearchParameters(resourceRaw json.RawMes
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -399,7 +399,7 @@ func (s *FhirConsent) PopulateAndExtractSearchParameters(resourceRaw json.RawMes
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -429,7 +429,7 @@ func (s *FhirConsent) PopulateAndExtractSearchParameters(resourceRaw json.RawMes
|
|||
}
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Purpose
|
||||
|
@ -578,7 +578,7 @@ func (s *FhirConsent) PopulateAndExtractSearchParameters(resourceRaw json.RawMes
|
|||
if err == nil && sourceReferenceResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -631,7 +631,7 @@ func (s *FhirConsent) PopulateAndExtractSearchParameters(resourceRaw json.RawMes
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -330,7 +330,7 @@ func (s *FhirCoverage) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -376,7 +376,7 @@ func (s *FhirCoverage) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -397,11 +397,11 @@ func (s *FhirCoverage) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
if err == nil && policyHolderResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -458,7 +458,7 @@ func (s *FhirCoverage) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -170,7 +170,7 @@ func (s *FhirCoverageEligibilityRequest) PopulateAndExtractSearchParameters(reso
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -216,7 +216,7 @@ func (s *FhirCoverageEligibilityRequest) PopulateAndExtractSearchParameters(reso
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -229,7 +229,7 @@ func (s *FhirCoverageEligibilityRequest) PopulateAndExtractSearchParameters(reso
|
|||
}
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Provider
|
||||
|
@ -237,7 +237,7 @@ func (s *FhirCoverageEligibilityRequest) PopulateAndExtractSearchParameters(reso
|
|||
if err == nil && providerResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -290,7 +290,7 @@ func (s *FhirCoverageEligibilityRequest) PopulateAndExtractSearchParameters(reso
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -233,7 +233,7 @@ func (s *FhirCoverageEligibilityResponse) PopulateAndExtractSearchParameters(res
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -279,7 +279,7 @@ func (s *FhirCoverageEligibilityResponse) PopulateAndExtractSearchParameters(res
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -339,7 +339,7 @@ func (s *FhirCoverageEligibilityResponse) PopulateAndExtractSearchParameters(res
|
|||
s.Outcome = []byte(outcomeResult.String())
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Request
|
||||
|
@ -351,7 +351,7 @@ func (s *FhirCoverageEligibilityResponse) PopulateAndExtractSearchParameters(res
|
|||
if err == nil && requestorResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -404,7 +404,7 @@ func (s *FhirCoverageEligibilityResponse) PopulateAndExtractSearchParameters(res
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -224,7 +224,7 @@ func (s *FhirDevice) PopulateAndExtractSearchParameters(resourceRaw json.RawMess
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -270,7 +270,7 @@ func (s *FhirDevice) PopulateAndExtractSearchParameters(resourceRaw json.RawMess
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -409,11 +409,11 @@ func (s *FhirDevice) PopulateAndExtractSearchParameters(resourceRaw json.RawMess
|
|||
if err == nil && organizationResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -466,7 +466,7 @@ func (s *FhirDevice) PopulateAndExtractSearchParameters(resourceRaw json.RawMess
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -450,7 +450,7 @@ func (s *FhirDeviceRequest) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -496,7 +496,7 @@ func (s *FhirDeviceRequest) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -517,7 +517,7 @@ func (s *FhirDeviceRequest) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
if err == nil && priorRequestResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Requester
|
||||
|
@ -525,7 +525,7 @@ func (s *FhirDeviceRequest) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
if err == nil && requesterResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -582,7 +582,7 @@ func (s *FhirDeviceRequest) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -445,7 +445,7 @@ func (s *FhirDiagnosticReport) PopulateAndExtractSearchParameters(resourceRaw js
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -491,7 +491,7 @@ func (s *FhirDiagnosticReport) PopulateAndExtractSearchParameters(resourceRaw js
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -512,7 +512,7 @@ func (s *FhirDiagnosticReport) PopulateAndExtractSearchParameters(resourceRaw js
|
|||
if err == nil && performerResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Result
|
||||
|
@ -524,7 +524,7 @@ func (s *FhirDiagnosticReport) PopulateAndExtractSearchParameters(resourceRaw js
|
|||
if err == nil && resultsInterpreterResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -585,7 +585,7 @@ func (s *FhirDiagnosticReport) PopulateAndExtractSearchParameters(resourceRaw js
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -282,7 +282,7 @@ func (s *FhirDocumentManifest) PopulateAndExtractSearchParameters(resourceRaw js
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -328,7 +328,7 @@ func (s *FhirDocumentManifest) PopulateAndExtractSearchParameters(resourceRaw js
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -341,7 +341,7 @@ func (s *FhirDocumentManifest) PopulateAndExtractSearchParameters(resourceRaw js
|
|||
}
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Recipient
|
||||
|
@ -405,7 +405,7 @@ func (s *FhirDocumentManifest) PopulateAndExtractSearchParameters(resourceRaw js
|
|||
s.Source = sourceResult.String()
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -462,7 +462,7 @@ func (s *FhirDocumentManifest) PopulateAndExtractSearchParameters(resourceRaw js
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -580,7 +580,7 @@ func (s *FhirDocumentReference) PopulateAndExtractSearchParameters(resourceRaw j
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -626,7 +626,7 @@ func (s *FhirDocumentReference) PopulateAndExtractSearchParameters(resourceRaw j
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -657,7 +657,7 @@ func (s *FhirDocumentReference) PopulateAndExtractSearchParameters(resourceRaw j
|
|||
}
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Related
|
||||
|
@ -810,7 +810,7 @@ func (s *FhirDocumentReference) PopulateAndExtractSearchParameters(resourceRaw j
|
|||
s.Setting = []byte(settingResult.String())
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -867,7 +867,7 @@ func (s *FhirDocumentReference) PopulateAndExtractSearchParameters(resourceRaw j
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -342,7 +342,7 @@ func (s *FhirEncounter) PopulateAndExtractSearchParameters(resourceRaw json.RawM
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -388,7 +388,7 @@ func (s *FhirEncounter) PopulateAndExtractSearchParameters(resourceRaw json.RawM
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -482,7 +482,7 @@ func (s *FhirEncounter) PopulateAndExtractSearchParameters(resourceRaw json.RawM
|
|||
if err == nil && practitionerResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting ReasonCode
|
||||
|
@ -541,7 +541,7 @@ func (s *FhirEncounter) PopulateAndExtractSearchParameters(resourceRaw json.RawM
|
|||
if err == nil && serviceProviderResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -645,7 +645,7 @@ func (s *FhirEncounter) PopulateAndExtractSearchParameters(resourceRaw json.RawM
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -196,7 +196,7 @@ func (s *FhirEndpoint) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -242,7 +242,7 @@ func (s *FhirEndpoint) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -365,11 +365,11 @@ func (s *FhirEndpoint) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
s.PayloadType = []byte(payloadTypeResult.String())
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -422,7 +422,7 @@ func (s *FhirEndpoint) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -137,7 +137,7 @@ func (s *FhirEnrollmentRequest) PopulateAndExtractSearchParameters(resourceRaw j
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -183,7 +183,7 @@ func (s *FhirEnrollmentRequest) PopulateAndExtractSearchParameters(resourceRaw j
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -196,11 +196,11 @@ func (s *FhirEnrollmentRequest) PopulateAndExtractSearchParameters(resourceRaw j
|
|||
}
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -257,7 +257,7 @@ func (s *FhirEnrollmentRequest) PopulateAndExtractSearchParameters(resourceRaw j
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -137,7 +137,7 @@ func (s *FhirEnrollmentResponse) PopulateAndExtractSearchParameters(resourceRaw
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -183,7 +183,7 @@ func (s *FhirEnrollmentResponse) PopulateAndExtractSearchParameters(resourceRaw
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -196,7 +196,7 @@ func (s *FhirEnrollmentResponse) PopulateAndExtractSearchParameters(resourceRaw
|
|||
}
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Request
|
||||
|
@ -204,7 +204,7 @@ func (s *FhirEnrollmentResponse) PopulateAndExtractSearchParameters(resourceRaw
|
|||
if err == nil && requestResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -257,7 +257,7 @@ func (s *FhirEnrollmentResponse) PopulateAndExtractSearchParameters(resourceRaw
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -293,7 +293,7 @@ func (s *FhirExplanationOfBenefit) PopulateAndExtractSearchParameters(resourceRa
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -339,7 +339,7 @@ func (s *FhirExplanationOfBenefit) PopulateAndExtractSearchParameters(resourceRa
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -360,7 +360,7 @@ func (s *FhirExplanationOfBenefit) PopulateAndExtractSearchParameters(resourceRa
|
|||
if err == nil && procedureUdiResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Provider
|
||||
|
@ -368,7 +368,7 @@ func (s *FhirExplanationOfBenefit) PopulateAndExtractSearchParameters(resourceRa
|
|||
if err == nil && providerResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -425,7 +425,7 @@ func (s *FhirExplanationOfBenefit) PopulateAndExtractSearchParameters(resourceRa
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -296,7 +296,7 @@ func (s *FhirFamilyMemberHistory) PopulateAndExtractSearchParameters(resourceRaw
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -342,7 +342,7 @@ func (s *FhirFamilyMemberHistory) PopulateAndExtractSearchParameters(resourceRaw
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -355,7 +355,7 @@ func (s *FhirFamilyMemberHistory) PopulateAndExtractSearchParameters(resourceRaw
|
|||
}
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Relationship
|
||||
|
@ -453,7 +453,7 @@ func (s *FhirFamilyMemberHistory) PopulateAndExtractSearchParameters(resourceRaw
|
|||
s.Sex = []byte(sexResult.String())
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -506,7 +506,7 @@ func (s *FhirFamilyMemberHistory) PopulateAndExtractSearchParameters(resourceRaw
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -280,7 +280,7 @@ func (s *FhirGoal) PopulateAndExtractSearchParameters(resourceRaw json.RawMessag
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -326,7 +326,7 @@ func (s *FhirGoal) PopulateAndExtractSearchParameters(resourceRaw json.RawMessag
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -386,11 +386,11 @@ func (s *FhirGoal) PopulateAndExtractSearchParameters(resourceRaw json.RawMessag
|
|||
s.LifecycleStatus = []byte(lifecycleStatusResult.String())
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -413,7 +413,7 @@ func (s *FhirGoal) PopulateAndExtractSearchParameters(resourceRaw json.RawMessag
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -379,7 +379,7 @@ func (s *FhirImagingStudy) PopulateAndExtractSearchParameters(resourceRaw json.R
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -425,7 +425,7 @@ func (s *FhirImagingStudy) PopulateAndExtractSearchParameters(resourceRaw json.R
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -489,7 +489,7 @@ func (s *FhirImagingStudy) PopulateAndExtractSearchParameters(resourceRaw json.R
|
|||
if err == nil && performerResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Reason
|
||||
|
@ -591,7 +591,7 @@ func (s *FhirImagingStudy) PopulateAndExtractSearchParameters(resourceRaw json.R
|
|||
s.Series = []byte(seriesResult.String())
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -661,7 +661,7 @@ func (s *FhirImagingStudy) PopulateAndExtractSearchParameters(resourceRaw json.R
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -251,7 +251,7 @@ func (s *FhirImmunization) PopulateAndExtractSearchParameters(resourceRaw json.R
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -297,7 +297,7 @@ func (s *FhirImmunization) PopulateAndExtractSearchParameters(resourceRaw json.R
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -381,7 +381,7 @@ func (s *FhirImmunization) PopulateAndExtractSearchParameters(resourceRaw json.R
|
|||
if err == nil && performerResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Reaction
|
||||
|
@ -512,7 +512,7 @@ func (s *FhirImmunization) PopulateAndExtractSearchParameters(resourceRaw json.R
|
|||
s.Series = []byte(seriesResult.String())
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -612,7 +612,7 @@ func (s *FhirImmunization) PopulateAndExtractSearchParameters(resourceRaw json.R
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -527,7 +527,7 @@ func (s *FhirInsurancePlan) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -573,7 +573,7 @@ func (s *FhirInsurancePlan) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -708,11 +708,11 @@ func (s *FhirInsurancePlan) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
s.Phonetic = []byte(phoneticResult.String())
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -765,7 +765,7 @@ func (s *FhirInsurancePlan) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -523,7 +523,7 @@ func (s *FhirLocation) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -569,7 +569,7 @@ func (s *FhirLocation) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -696,11 +696,11 @@ func (s *FhirLocation) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
if err == nil && partofResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -753,7 +753,7 @@ func (s *FhirLocation) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -194,7 +194,7 @@ func (s *FhirMedia) PopulateAndExtractSearchParameters(resourceRaw json.RawMessa
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -240,7 +240,7 @@ func (s *FhirMedia) PopulateAndExtractSearchParameters(resourceRaw json.RawMessa
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -304,7 +304,7 @@ func (s *FhirMedia) PopulateAndExtractSearchParameters(resourceRaw json.RawMessa
|
|||
if err == nil && operatorResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Site
|
||||
|
@ -355,7 +355,7 @@ func (s *FhirMedia) PopulateAndExtractSearchParameters(resourceRaw json.RawMessa
|
|||
s.Site = []byte(siteResult.String())
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -412,7 +412,7 @@ func (s *FhirMedia) PopulateAndExtractSearchParameters(resourceRaw json.RawMessa
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -336,7 +336,7 @@ func (s *FhirMedication) PopulateAndExtractSearchParameters(resourceRaw json.Raw
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -382,7 +382,7 @@ func (s *FhirMedication) PopulateAndExtractSearchParameters(resourceRaw json.Raw
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -446,11 +446,11 @@ func (s *FhirMedication) PopulateAndExtractSearchParameters(resourceRaw json.Raw
|
|||
if err == nil && manufacturerResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -503,7 +503,7 @@ func (s *FhirMedication) PopulateAndExtractSearchParameters(resourceRaw json.Raw
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -305,7 +305,7 @@ func (s *FhirMedicationAdministration) PopulateAndExtractSearchParameters(resour
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -351,7 +351,7 @@ func (s *FhirMedicationAdministration) PopulateAndExtractSearchParameters(resour
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -372,7 +372,7 @@ func (s *FhirMedicationAdministration) PopulateAndExtractSearchParameters(resour
|
|||
if err == nil && performerResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting ReasonGiven
|
||||
|
@ -474,7 +474,7 @@ func (s *FhirMedicationAdministration) PopulateAndExtractSearchParameters(resour
|
|||
if err == nil && requestResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -531,7 +531,7 @@ func (s *FhirMedicationAdministration) PopulateAndExtractSearchParameters(resour
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -300,7 +300,7 @@ func (s *FhirMedicationDispense) PopulateAndExtractSearchParameters(resourceRaw
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -346,7 +346,7 @@ func (s *FhirMedicationDispense) PopulateAndExtractSearchParameters(resourceRaw
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -371,7 +371,7 @@ func (s *FhirMedicationDispense) PopulateAndExtractSearchParameters(resourceRaw
|
|||
if err == nil && prescriptionResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Receiver
|
||||
|
@ -383,7 +383,7 @@ func (s *FhirMedicationDispense) PopulateAndExtractSearchParameters(resourceRaw
|
|||
if err == nil && responsiblepartyResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -440,7 +440,7 @@ func (s *FhirMedicationDispense) PopulateAndExtractSearchParameters(resourceRaw
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -483,7 +483,7 @@ func (s *FhirMedicationRequest) PopulateAndExtractSearchParameters(resourceRaw j
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -529,7 +529,7 @@ func (s *FhirMedicationRequest) PopulateAndExtractSearchParameters(resourceRaw j
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -593,7 +593,7 @@ func (s *FhirMedicationRequest) PopulateAndExtractSearchParameters(resourceRaw j
|
|||
s.Priority = []byte(priorityResult.String())
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Requester
|
||||
|
@ -601,7 +601,7 @@ func (s *FhirMedicationRequest) PopulateAndExtractSearchParameters(resourceRaw j
|
|||
if err == nil && requesterResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -658,7 +658,7 @@ func (s *FhirMedicationRequest) PopulateAndExtractSearchParameters(resourceRaw j
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -340,7 +340,7 @@ func (s *FhirMedicationStatement) PopulateAndExtractSearchParameters(resourceRaw
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -386,7 +386,7 @@ func (s *FhirMedicationStatement) PopulateAndExtractSearchParameters(resourceRaw
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -407,7 +407,7 @@ func (s *FhirMedicationStatement) PopulateAndExtractSearchParameters(resourceRaw
|
|||
if err == nil && partOfResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Source
|
||||
|
@ -415,7 +415,7 @@ func (s *FhirMedicationStatement) PopulateAndExtractSearchParameters(resourceRaw
|
|||
if err == nil && sourceResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -472,7 +472,7 @@ func (s *FhirMedicationStatement) PopulateAndExtractSearchParameters(resourceRaw
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -337,7 +337,7 @@ func (s *FhirNutritionOrder) PopulateAndExtractSearchParameters(resourceRaw json
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -383,7 +383,7 @@ func (s *FhirNutritionOrder) PopulateAndExtractSearchParameters(resourceRaw json
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -443,7 +443,7 @@ func (s *FhirNutritionOrder) PopulateAndExtractSearchParameters(resourceRaw json
|
|||
s.Oraldiet = []byte(oraldietResult.String())
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Provider
|
||||
|
@ -451,7 +451,7 @@ func (s *FhirNutritionOrder) PopulateAndExtractSearchParameters(resourceRaw json
|
|||
if err == nil && providerResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -551,7 +551,7 @@ func (s *FhirNutritionOrder) PopulateAndExtractSearchParameters(resourceRaw json
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -796,7 +796,7 @@ func (s *FhirObservation) PopulateAndExtractSearchParameters(resourceRaw json.Ra
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -842,7 +842,7 @@ func (s *FhirObservation) PopulateAndExtractSearchParameters(resourceRaw json.Ra
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -910,11 +910,11 @@ func (s *FhirObservation) PopulateAndExtractSearchParameters(resourceRaw json.Ra
|
|||
if err == nil && performerResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -975,7 +975,7 @@ func (s *FhirObservation) PopulateAndExtractSearchParameters(resourceRaw json.Ra
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -566,7 +566,7 @@ func (s *FhirOrganization) PopulateAndExtractSearchParameters(resourceRaw json.R
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -612,7 +612,7 @@ func (s *FhirOrganization) PopulateAndExtractSearchParameters(resourceRaw json.R
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -747,17 +747,17 @@ func (s *FhirOrganization) PopulateAndExtractSearchParameters(resourceRaw json.R
|
|||
s.Phonetic = []byte(phoneticResult.String())
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
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, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -292,7 +292,7 @@ func (s *FhirOrganizationAffiliation) PopulateAndExtractSearchParameters(resourc
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -338,7 +338,7 @@ func (s *FhirOrganizationAffiliation) PopulateAndExtractSearchParameters(resourc
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -414,7 +414,7 @@ func (s *FhirOrganizationAffiliation) PopulateAndExtractSearchParameters(resourc
|
|||
if err == nil && primaryOrganizationResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Role
|
||||
|
@ -469,7 +469,7 @@ func (s *FhirOrganizationAffiliation) PopulateAndExtractSearchParameters(resourc
|
|||
if err == nil && serviceResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -522,7 +522,7 @@ func (s *FhirOrganizationAffiliation) PopulateAndExtractSearchParameters(resourc
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -987,7 +987,7 @@ func (s *FhirPatient) PopulateAndExtractSearchParameters(resourceRaw json.RawMes
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -1033,7 +1033,7 @@ func (s *FhirPatient) PopulateAndExtractSearchParameters(resourceRaw json.RawMes
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -1219,17 +1219,17 @@ func (s *FhirPatient) PopulateAndExtractSearchParameters(resourceRaw json.RawMes
|
|||
s.Phonetic = []byte(phoneticResult.String())
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
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, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -732,7 +732,7 @@ func (s *FhirPerson) PopulateAndExtractSearchParameters(resourceRaw json.RawMess
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -778,7 +778,7 @@ func (s *FhirPerson) PopulateAndExtractSearchParameters(resourceRaw json.RawMess
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -968,7 +968,7 @@ func (s *FhirPerson) PopulateAndExtractSearchParameters(resourceRaw json.RawMess
|
|||
if err == nil && practitionerResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Relatedperson
|
||||
|
@ -976,13 +976,13 @@ func (s *FhirPerson) PopulateAndExtractSearchParameters(resourceRaw json.RawMess
|
|||
if err == nil && relatedpersonResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
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, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -931,7 +931,7 @@ func (s *FhirPractitioner) PopulateAndExtractSearchParameters(resourceRaw json.R
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -977,7 +977,7 @@ func (s *FhirPractitioner) PopulateAndExtractSearchParameters(resourceRaw json.R
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -1155,17 +1155,17 @@ func (s *FhirPractitioner) PopulateAndExtractSearchParameters(resourceRaw json.R
|
|||
s.Phonetic = []byte(phoneticResult.String())
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
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, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -312,7 +312,7 @@ func (s *FhirPractitionerRole) PopulateAndExtractSearchParameters(resourceRaw js
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -358,7 +358,7 @@ func (s *FhirPractitionerRole) PopulateAndExtractSearchParameters(resourceRaw js
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -430,7 +430,7 @@ func (s *FhirPractitionerRole) PopulateAndExtractSearchParameters(resourceRaw js
|
|||
if err == nil && practitionerResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Role
|
||||
|
@ -485,7 +485,7 @@ func (s *FhirPractitionerRole) PopulateAndExtractSearchParameters(resourceRaw js
|
|||
if err == nil && serviceResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -538,7 +538,7 @@ func (s *FhirPractitionerRole) PopulateAndExtractSearchParameters(resourceRaw js
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -394,7 +394,7 @@ func (s *FhirProcedure) PopulateAndExtractSearchParameters(resourceRaw json.RawM
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -440,7 +440,7 @@ func (s *FhirProcedure) PopulateAndExtractSearchParameters(resourceRaw json.RawM
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -465,7 +465,7 @@ func (s *FhirProcedure) PopulateAndExtractSearchParameters(resourceRaw json.RawM
|
|||
if err == nil && performerResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting ReasonCode
|
||||
|
@ -520,7 +520,7 @@ func (s *FhirProcedure) PopulateAndExtractSearchParameters(resourceRaw json.RawM
|
|||
if err == nil && reasonReferenceResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -577,7 +577,7 @@ func (s *FhirProcedure) PopulateAndExtractSearchParameters(resourceRaw json.RawM
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -216,7 +216,7 @@ func (s *FhirProvenance) PopulateAndExtractSearchParameters(resourceRaw json.Raw
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -262,7 +262,7 @@ func (s *FhirProvenance) PopulateAndExtractSearchParameters(resourceRaw json.Raw
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -279,7 +279,7 @@ func (s *FhirProvenance) PopulateAndExtractSearchParameters(resourceRaw json.Raw
|
|||
if err == nil && locationResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Recorded
|
||||
|
@ -343,13 +343,13 @@ func (s *FhirProvenance) PopulateAndExtractSearchParameters(resourceRaw json.Raw
|
|||
s.SignatureType = []byte(signatureTypeResult.String())
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
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, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -476,7 +476,7 @@ func (s *FhirQuestionnaire) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -522,7 +522,7 @@ func (s *FhirQuestionnaire) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -594,7 +594,7 @@ func (s *FhirQuestionnaire) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
s.Name = []byte(nameResult.String())
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Publisher
|
||||
|
@ -657,7 +657,7 @@ func (s *FhirQuestionnaire) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
s.Publisher = []byte(publisherResult.String())
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -757,7 +757,7 @@ func (s *FhirQuestionnaire) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -190,7 +190,7 @@ func (s *FhirQuestionnaireResponse) PopulateAndExtractSearchParameters(resourceR
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -236,7 +236,7 @@ func (s *FhirQuestionnaireResponse) PopulateAndExtractSearchParameters(resourceR
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -253,7 +253,7 @@ func (s *FhirQuestionnaireResponse) PopulateAndExtractSearchParameters(resourceR
|
|||
if err == nil && partOfResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Questionnaire
|
||||
|
@ -265,7 +265,7 @@ func (s *FhirQuestionnaireResponse) PopulateAndExtractSearchParameters(resourceR
|
|||
if err == nil && sourceResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -322,7 +322,7 @@ func (s *FhirQuestionnaireResponse) PopulateAndExtractSearchParameters(resourceR
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -771,7 +771,7 @@ func (s *FhirRelatedPerson) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -817,7 +817,7 @@ func (s *FhirRelatedPerson) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -995,7 +995,7 @@ func (s *FhirRelatedPerson) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
s.Phonetic = []byte(phoneticResult.String())
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Relationship
|
||||
|
@ -1046,13 +1046,13 @@ func (s *FhirRelatedPerson) PopulateAndExtractSearchParameters(resourceRaw json.
|
|||
s.Relationship = []byte(relationshipResult.String())
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
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, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -217,7 +217,7 @@ func (s *FhirSchedule) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -263,7 +263,7 @@ func (s *FhirSchedule) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -276,7 +276,7 @@ func (s *FhirSchedule) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
}
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting ServiceCategory
|
||||
|
@ -374,7 +374,7 @@ func (s *FhirSchedule) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
s.ServiceType = []byte(serviceTypeResult.String())
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -427,7 +427,7 @@ func (s *FhirSchedule) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -488,7 +488,7 @@ func (s *FhirServiceRequest) PopulateAndExtractSearchParameters(resourceRaw json
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -534,7 +534,7 @@ func (s *FhirServiceRequest) PopulateAndExtractSearchParameters(resourceRaw json
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -658,7 +658,7 @@ func (s *FhirServiceRequest) PopulateAndExtractSearchParameters(resourceRaw json
|
|||
s.Priority = []byte(priorityResult.String())
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Replaces
|
||||
|
@ -717,7 +717,7 @@ func (s *FhirServiceRequest) PopulateAndExtractSearchParameters(resourceRaw json
|
|||
s.Requisition = []byte(requisitionResult.String())
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -778,7 +778,7 @@ func (s *FhirServiceRequest) PopulateAndExtractSearchParameters(resourceRaw json
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -204,7 +204,7 @@ func (s *FhirSlot) PopulateAndExtractSearchParameters(resourceRaw json.RawMessag
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -250,7 +250,7 @@ func (s *FhirSlot) PopulateAndExtractSearchParameters(resourceRaw json.RawMessag
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -263,7 +263,7 @@ func (s *FhirSlot) PopulateAndExtractSearchParameters(resourceRaw json.RawMessag
|
|||
}
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Schedule
|
||||
|
@ -365,7 +365,7 @@ func (s *FhirSlot) PopulateAndExtractSearchParameters(resourceRaw json.RawMessag
|
|||
s.ServiceType = []byte(serviceTypeResult.String())
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -478,7 +478,7 @@ func (s *FhirSlot) PopulateAndExtractSearchParameters(resourceRaw json.RawMessag
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -370,7 +370,7 @@ func (s *FhirSpecimen) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -416,7 +416,7 @@ func (s *FhirSpecimen) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -433,11 +433,11 @@ func (s *FhirSpecimen) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
if err == nil && parentResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -494,7 +494,7 @@ func (s *FhirSpecimen) PopulateAndExtractSearchParameters(resourceRaw json.RawMe
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -210,7 +210,7 @@ func (s *FhirVisionPrescription) PopulateAndExtractSearchParameters(resourceRaw
|
|||
}
|
||||
// extracting Language
|
||||
languageResult, err := vm.RunString(`
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'Resource.language')
|
||||
LanguageResult = window.fhirpath.evaluate(fhirResource, 'language')
|
||||
LanguageProcessed = LanguageResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
@ -256,7 +256,7 @@ func (s *FhirVisionPrescription) PopulateAndExtractSearchParameters(resourceRaw
|
|||
s.Language = []byte(languageResult.String())
|
||||
}
|
||||
// extracting LastUpdated
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.lastUpdated')[0]")
|
||||
lastUpdatedResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.lastUpdated')[0]")
|
||||
if err == nil && lastUpdatedResult.String() != "undefined" {
|
||||
t, err := time.Parse(time.RFC3339, lastUpdatedResult.String())
|
||||
if err == nil {
|
||||
|
@ -273,11 +273,11 @@ func (s *FhirVisionPrescription) PopulateAndExtractSearchParameters(resourceRaw
|
|||
if err == nil && prescriberResult.String() != "undefined" {
|
||||
}
|
||||
// extracting Profile
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'Resource.meta.profile'))")
|
||||
profileResult, err := vm.RunString("JSON.stringify(window.fhirpath.evaluate(fhirResource, 'meta.profile'))")
|
||||
if err == nil && profileResult.String() != "undefined" {
|
||||
}
|
||||
// extracting SourceUri
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'Resource.meta.source')[0]")
|
||||
sourceUriResult, err := vm.RunString("window.fhirpath.evaluate(fhirResource, 'meta.source')[0]")
|
||||
if err == nil && sourceUriResult.String() != "undefined" {
|
||||
s.SourceUri = sourceUriResult.String()
|
||||
}
|
||||
|
@ -330,7 +330,7 @@ func (s *FhirVisionPrescription) PopulateAndExtractSearchParameters(resourceRaw
|
|||
}
|
||||
// extracting Tag
|
||||
tagResult, err := vm.RunString(`
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'Resource.meta.tag')
|
||||
TagResult = window.fhirpath.evaluate(fhirResource, 'meta.tag')
|
||||
TagProcessed = TagResult.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.coding) {
|
||||
//CodeableConcept
|
||||
|
|
|
@ -289,6 +289,8 @@ func main() {
|
|||
|
||||
//remove all " as " from the fhirpath expression, this does not work correctly with goja or otto
|
||||
fieldInfo.FHIRPathExpression = strings.ReplaceAll(fieldInfo.FHIRPathExpression, " as ", "")
|
||||
//remove `Resource.` prefix from resource expression
|
||||
fieldInfo.FHIRPathExpression = strings.ReplaceAll(fieldInfo.FHIRPathExpression, "Resource.", "")
|
||||
}
|
||||
|
||||
g.Comment(fmt.Sprintf("extracting %s", fieldName))
|
||||
|
|
Loading…
Reference in New Issue