@d4l/collect-lib 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1117,7 +1117,7 @@ declare function getText<K>(content: any, path: K, lng: string): string;
1117
1117
  */
1118
1118
  declare function get(obj: Record<string, any>, path: string): string | undefined;
1119
1119
 
1120
- declare function generateFHIREligibility(surveyName: string, createdAt: string, value: number, max: number, stringTemplater: StringTemplater): fhir5.Observation;
1120
+ declare function generateFHIREligibility(id: string, surveyName: string, createdAt: string, value: number, max: number, stringTemplater: StringTemplater): fhir5.Observation;
1121
1121
 
1122
1122
  declare function generateFHIRResponse(id: string, { programName, effectiveDate, language, questionnaire, createdAt, status, answers, }: QuestionnaireResponse): fhir5.QuestionnaireResponse;
1123
1123
  declare const toQuestionnaireResponseItem: (answer: {
@@ -1136,7 +1136,7 @@ declare const generateFHIRResearchSubject: (id: string, { programName, subject,
1136
1136
 
1137
1137
  declare function generateFHIRSeenDisplay(id: string, seenDisplay: SeenDisplay): fhir5.Communication;
1138
1138
 
1139
- declare function generateFHIRTag(code: string, date: string, labels: {
1139
+ declare function generateFHIRTag(id: string, code: string, date: string, labels: {
1140
1140
  [key: string]: string;
1141
1141
  }, stringTemplater: StringTemplater): fhir5.Observation;
1142
1142
 
package/dist/index.d.ts CHANGED
@@ -1117,7 +1117,7 @@ declare function getText<K>(content: any, path: K, lng: string): string;
1117
1117
  */
1118
1118
  declare function get(obj: Record<string, any>, path: string): string | undefined;
1119
1119
 
1120
- declare function generateFHIREligibility(surveyName: string, createdAt: string, value: number, max: number, stringTemplater: StringTemplater): fhir5.Observation;
1120
+ declare function generateFHIREligibility(id: string, surveyName: string, createdAt: string, value: number, max: number, stringTemplater: StringTemplater): fhir5.Observation;
1121
1121
 
1122
1122
  declare function generateFHIRResponse(id: string, { programName, effectiveDate, language, questionnaire, createdAt, status, answers, }: QuestionnaireResponse): fhir5.QuestionnaireResponse;
1123
1123
  declare const toQuestionnaireResponseItem: (answer: {
@@ -1136,7 +1136,7 @@ declare const generateFHIRResearchSubject: (id: string, { programName, subject,
1136
1136
 
1137
1137
  declare function generateFHIRSeenDisplay(id: string, seenDisplay: SeenDisplay): fhir5.Communication;
1138
1138
 
1139
- declare function generateFHIRTag(code: string, date: string, labels: {
1139
+ declare function generateFHIRTag(id: string, code: string, date: string, labels: {
1140
1140
  [key: string]: string;
1141
1141
  }, stringTemplater: StringTemplater): fhir5.Observation;
1142
1142
 
package/dist/index.js CHANGED
@@ -4450,8 +4450,9 @@ function generateFHIRConsent(id, consent, decision, start, end) {
4450
4450
  }
4451
4451
 
4452
4452
  // src/fhir/eligibilityScore.ts
4453
- function generateFHIREligibility(surveyName, createdAt, value, max, stringTemplater) {
4453
+ function generateFHIREligibility(id, surveyName, createdAt, value, max, stringTemplater) {
4454
4454
  return {
4455
+ id,
4455
4456
  resourceType: "Observation",
4456
4457
  status: "final",
4457
4458
  extension: [
@@ -5050,8 +5051,9 @@ function generateFHIRSeenDisplay(id, seenDisplay) {
5050
5051
  }
5051
5052
 
5052
5053
  // src/fhir/tag.ts
5053
- function generateFHIRTag(code, date, labels, stringTemplater) {
5054
+ function generateFHIRTag(id, code, date, labels, stringTemplater) {
5054
5055
  return {
5056
+ id,
5055
5057
  resourceType: "Observation",
5056
5058
  status: "final",
5057
5059
  code: {