gdc-common-utils-ts 2.0.6 → 2.0.8

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.
@@ -1,13 +1,42 @@
1
1
  import { ClaimsPersonSchemaorg } from '../constants/schemaorg.js';
2
2
  import { ResourceTypesFhirR4 } from '../constants/fhir-resource-types.js';
3
3
  import { ObservationCategoryCodes, VitalSignsCodes, VitalSignsUnits } from '../constants/vital-signs.js';
4
+ import { AllergyIntoleranceClaim } from '../models/interoperable-claims/allergy-intolerance-claims.js';
5
+ import { CarePlanClaim } from '../models/interoperable-claims/care-plan-claims.js';
6
+ import { ClinicalImpressionClaim } from '../models/interoperable-claims/clinical-impression-claims.js';
7
+ import { ConditionClaim } from '../models/interoperable-claims/condition-claims.js';
8
+ import { CoverageClaim } from '../models/interoperable-claims/coverage-claims.js';
9
+ import { DeviceClaim } from '../models/interoperable-claims/device-claims.js';
10
+ import { DeviceUseStatementClaim } from '../models/interoperable-claims/device-use-statement-claims.js';
11
+ import { DiagnosticReportClaim } from '../models/interoperable-claims/diagnostic-report-claims.js';
12
+ import { DocumentReferenceClaim } from '../models/interoperable-claims/document-reference-claims.js';
13
+ import { EncounterClaim } from '../models/interoperable-claims/encounter-claims.js';
14
+ import { FlagClaim } from '../models/interoperable-claims/flag-claims.js';
15
+ import { ImmunizationClaim } from '../models/interoperable-claims/immunization-claims.js';
16
+ import { MedicationStatementClaim, MedicationStatementClaimsFhirApiExtended, } from '../models/interoperable-claims/medication-statement-claims.js';
4
17
  import { ObservationClaim } from '../models/interoperable-claims/observation-claims.js';
18
+ import { ProcedureClaim } from '../models/interoperable-claims/procedure-claims.js';
19
+ import { getClaimValues, setClaimValues } from '../claims/claim-list-helpers.js';
5
20
  import { buildEmployeeBatchEntry, buildEmployeePurgeBundle, buildEmployeeSearchBundle, EmployeeBatchEntryTypes, EmployeeBundleMethods, EmployeeBundleOperations, EmployeeResourceTypes, } from './employee.js';
6
21
  export const BundleEditableResourceTypes = Object.freeze({
7
22
  employee: EmployeeResourceTypes.employee,
8
23
  consent: ResourceTypesFhirR4.Consent,
9
24
  observation: ResourceTypesFhirR4.Observation,
10
25
  vitalSign: ResourceTypesFhirR4.Observation,
26
+ allergyIntolerance: ResourceTypesFhirR4.AllergyIntolerance,
27
+ condition: ResourceTypesFhirR4.Condition,
28
+ medicationStatement: ResourceTypesFhirR4.MedicationStatement,
29
+ documentReference: ResourceTypesFhirR4.DocumentReference,
30
+ carePlan: ResourceTypesFhirR4.CarePlan,
31
+ flag: ResourceTypesFhirR4.Flag,
32
+ clinicalImpression: ResourceTypesFhirR4.ClinicalImpression,
33
+ device: ResourceTypesFhirR4.Device,
34
+ deviceUseStatement: ResourceTypesFhirR4.DeviceUseStatement,
35
+ encounter: ResourceTypesFhirR4.Encounter,
36
+ coverage: ResourceTypesFhirR4.Coverage,
37
+ immunization: ResourceTypesFhirR4.Immunization,
38
+ procedure: ResourceTypesFhirR4.Procedure,
39
+ diagnosticReport: ResourceTypesFhirR4.DiagnosticReport,
11
40
  });
12
41
  function cloneEntry(value) {
13
42
  return JSON.parse(JSON.stringify(value));
@@ -344,6 +373,118 @@ export class BundleEntryEditor {
344
373
  }
345
374
  return new ObservationEntryEditor(this.bundleEditor, this.entryIndex);
346
375
  }
376
+ /** Opens the current entry as one AllergyIntolerance editor. */
377
+ asAllergy() {
378
+ const entry = this.getMutableEntry();
379
+ if (entry.resource?.resourceType !== ResourceTypesFhirR4.AllergyIntolerance) {
380
+ throw new Error(`BundleEntryEditor cannot open this entry as AllergyIntolerance: ${String(entry.resource?.resourceType || '')}`);
381
+ }
382
+ return new AllergyIntoleranceEntryEditor(this.bundleEditor, this.entryIndex);
383
+ }
384
+ /** Opens the current entry as one Condition editor. */
385
+ asCondition() {
386
+ const entry = this.getMutableEntry();
387
+ if (entry.resource?.resourceType !== ResourceTypesFhirR4.Condition) {
388
+ throw new Error(`BundleEntryEditor cannot open this entry as Condition: ${String(entry.resource?.resourceType || '')}`);
389
+ }
390
+ return new ConditionEntryEditor(this.bundleEditor, this.entryIndex);
391
+ }
392
+ /** Opens the current entry as one MedicationStatement editor. */
393
+ asMedicationStatement() {
394
+ const entry = this.getMutableEntry();
395
+ if (entry.resource?.resourceType !== ResourceTypesFhirR4.MedicationStatement) {
396
+ throw new Error(`BundleEntryEditor cannot open this entry as MedicationStatement: ${String(entry.resource?.resourceType || '')}`);
397
+ }
398
+ return new MedicationStatementEntryEditor(this.bundleEditor, this.entryIndex);
399
+ }
400
+ /** Opens the current entry as one DocumentReference editor. */
401
+ asDocumentReference() {
402
+ const entry = this.getMutableEntry();
403
+ if (entry.resource?.resourceType !== ResourceTypesFhirR4.DocumentReference) {
404
+ throw new Error(`BundleEntryEditor cannot open this entry as DocumentReference: ${String(entry.resource?.resourceType || '')}`);
405
+ }
406
+ return new DocumentReferenceEntryEditor(this.bundleEditor, this.entryIndex);
407
+ }
408
+ /** Opens the current entry as one CarePlan editor. */
409
+ asCarePlan() {
410
+ const entry = this.getMutableEntry();
411
+ if (entry.resource?.resourceType !== ResourceTypesFhirR4.CarePlan) {
412
+ throw new Error(`BundleEntryEditor cannot open this entry as CarePlan: ${String(entry.resource?.resourceType || '')}`);
413
+ }
414
+ return new CarePlanEntryEditor(this.bundleEditor, this.entryIndex);
415
+ }
416
+ /** Opens the current entry as one Flag editor. */
417
+ asFlag() {
418
+ const entry = this.getMutableEntry();
419
+ if (entry.resource?.resourceType !== ResourceTypesFhirR4.Flag) {
420
+ throw new Error(`BundleEntryEditor cannot open this entry as Flag: ${String(entry.resource?.resourceType || '')}`);
421
+ }
422
+ return new FlagEntryEditor(this.bundleEditor, this.entryIndex);
423
+ }
424
+ /** Opens the current entry as one ClinicalImpression editor. */
425
+ asClinicalImpression() {
426
+ const entry = this.getMutableEntry();
427
+ if (entry.resource?.resourceType !== ResourceTypesFhirR4.ClinicalImpression) {
428
+ throw new Error(`BundleEntryEditor cannot open this entry as ClinicalImpression: ${String(entry.resource?.resourceType || '')}`);
429
+ }
430
+ return new ClinicalImpressionEntryEditor(this.bundleEditor, this.entryIndex);
431
+ }
432
+ /** Opens the current entry as one Device editor. */
433
+ asDevice() {
434
+ const entry = this.getMutableEntry();
435
+ if (entry.resource?.resourceType !== ResourceTypesFhirR4.Device) {
436
+ throw new Error(`BundleEntryEditor cannot open this entry as Device: ${String(entry.resource?.resourceType || '')}`);
437
+ }
438
+ return new DeviceEntryEditor(this.bundleEditor, this.entryIndex);
439
+ }
440
+ /** Opens the current entry as one DeviceUseStatement editor. */
441
+ asDeviceUseStatement() {
442
+ const entry = this.getMutableEntry();
443
+ if (entry.resource?.resourceType !== ResourceTypesFhirR4.DeviceUseStatement) {
444
+ throw new Error(`BundleEntryEditor cannot open this entry as DeviceUseStatement: ${String(entry.resource?.resourceType || '')}`);
445
+ }
446
+ return new DeviceUseStatementEntryEditor(this.bundleEditor, this.entryIndex);
447
+ }
448
+ /** Opens the current entry as one Encounter editor. */
449
+ asEncounter() {
450
+ const entry = this.getMutableEntry();
451
+ if (entry.resource?.resourceType !== ResourceTypesFhirR4.Encounter) {
452
+ throw new Error(`BundleEntryEditor cannot open this entry as Encounter: ${String(entry.resource?.resourceType || '')}`);
453
+ }
454
+ return new EncounterEntryEditor(this.bundleEditor, this.entryIndex);
455
+ }
456
+ /** Opens the current entry as one Coverage editor. */
457
+ asCoverage() {
458
+ const entry = this.getMutableEntry();
459
+ if (entry.resource?.resourceType !== ResourceTypesFhirR4.Coverage) {
460
+ throw new Error(`BundleEntryEditor cannot open this entry as Coverage: ${String(entry.resource?.resourceType || '')}`);
461
+ }
462
+ return new CoverageEntryEditor(this.bundleEditor, this.entryIndex);
463
+ }
464
+ /** Opens the current entry as one Immunization editor. */
465
+ asImmunization() {
466
+ const entry = this.getMutableEntry();
467
+ if (entry.resource?.resourceType !== ResourceTypesFhirR4.Immunization) {
468
+ throw new Error(`BundleEntryEditor cannot open this entry as Immunization: ${String(entry.resource?.resourceType || '')}`);
469
+ }
470
+ return new ImmunizationEntryEditor(this.bundleEditor, this.entryIndex);
471
+ }
472
+ /** Opens the current entry as one Procedure editor. */
473
+ asProcedure() {
474
+ const entry = this.getMutableEntry();
475
+ if (entry.resource?.resourceType !== ResourceTypesFhirR4.Procedure) {
476
+ throw new Error(`BundleEntryEditor cannot open this entry as Procedure: ${String(entry.resource?.resourceType || '')}`);
477
+ }
478
+ return new ProcedureEntryEditor(this.bundleEditor, this.entryIndex);
479
+ }
480
+ /** Opens the current entry as one DiagnosticReport editor. */
481
+ asDiagnosticReport() {
482
+ const entry = this.getMutableEntry();
483
+ if (entry.resource?.resourceType !== ResourceTypesFhirR4.DiagnosticReport) {
484
+ throw new Error(`BundleEntryEditor cannot open this entry as DiagnosticReport: ${String(entry.resource?.resourceType || '')}`);
485
+ }
486
+ return new DiagnosticReportEntryEditor(this.bundleEditor, this.entryIndex);
487
+ }
347
488
  /** Reads one claim from this entry. */
348
489
  getClaim(key) {
349
490
  return cloneClaimValue(this.getClaims()[String(key).trim()]);
@@ -440,6 +581,109 @@ export class BundleEntryEditor {
440
581
  };
441
582
  }
442
583
  }
584
+ /**
585
+ * Shared claims-first editor utilities for IPS clinical resource families.
586
+ *
587
+ * The concrete resource type changes, but the editing contract stays aligned:
588
+ * identifier + subject + status + date + optional CSV-backed reference lists.
589
+ */
590
+ class ClinicalResourceEntryEditor extends BundleEntryEditor {
591
+ getIdentifierValue(claimKey) {
592
+ return normalizeOptionalIdentifier(this.getClaim(claimKey)
593
+ || this.getResourceId()
594
+ || this.getFullUrl());
595
+ }
596
+ setIdentifierValue(claimKey, identifier) {
597
+ const normalized = normalizeOptionalIdentifier(identifier);
598
+ if (!normalized) {
599
+ this.removeClaim(claimKey);
600
+ this.setResourceId(undefined);
601
+ this.setFullUrl(undefined);
602
+ return this;
603
+ }
604
+ this.setClaim(claimKey, normalized);
605
+ this.setResourceId(normalized);
606
+ this.setFullUrl(normalized);
607
+ return this;
608
+ }
609
+ setSubjectClaims(subjectClaimKey, patientClaimKey, subject) {
610
+ const normalized = normalizeOptionalIdentifier(subject);
611
+ if (!normalized) {
612
+ this.removeClaim(subjectClaimKey);
613
+ this.removeClaim(patientClaimKey);
614
+ return this;
615
+ }
616
+ this.setClaim(subjectClaimKey, normalized);
617
+ this.setClaim(patientClaimKey, normalized);
618
+ return this;
619
+ }
620
+ getSubjectClaims(subjectClaimKey, patientClaimKey) {
621
+ return normalizeOptionalIdentifier(this.getClaim(subjectClaimKey)
622
+ || this.getClaim(patientClaimKey));
623
+ }
624
+ setScalarClaim(claimKey, value) {
625
+ const normalized = normalizeOptionalIdentifier(value);
626
+ if (!normalized) {
627
+ this.removeClaim(claimKey);
628
+ return this;
629
+ }
630
+ return this.setClaim(claimKey, normalized);
631
+ }
632
+ getScalarClaim(claimKey) {
633
+ return normalizeOptionalIdentifier(this.getClaim(claimKey));
634
+ }
635
+ setNumberClaim(claimKey, value) {
636
+ if (value === undefined || value === null || Number.isNaN(value)) {
637
+ this.removeClaim(claimKey);
638
+ return this;
639
+ }
640
+ return this.setClaim(claimKey, String(value));
641
+ }
642
+ getNumberClaim(claimKey) {
643
+ const raw = this.getClaim(claimKey);
644
+ if (raw === undefined || raw === null || raw === '')
645
+ return undefined;
646
+ const numeric = Number(raw);
647
+ return Number.isFinite(numeric) ? numeric : undefined;
648
+ }
649
+ setBooleanClaim(claimKey, value) {
650
+ if (value === undefined || value === null) {
651
+ this.removeClaim(claimKey);
652
+ return this;
653
+ }
654
+ return this.setClaim(claimKey, value);
655
+ }
656
+ getBooleanClaim(claimKey) {
657
+ const raw = this.getClaim(claimKey);
658
+ if (typeof raw === 'boolean')
659
+ return raw;
660
+ if (raw === 'true')
661
+ return true;
662
+ if (raw === 'false')
663
+ return false;
664
+ return undefined;
665
+ }
666
+ setCsvClaimList(claimKey, values) {
667
+ const next = setClaimValues({}, claimKey, values);
668
+ const normalized = normalizeOptionalIdentifier(next[claimKey]);
669
+ if (!normalized) {
670
+ this.removeClaim(claimKey);
671
+ return this;
672
+ }
673
+ return this.setClaim(claimKey, normalized);
674
+ }
675
+ getCsvClaimList(claimKey) {
676
+ return getClaimValues(this.getClaims(), claimKey);
677
+ }
678
+ ensureIdentifierValue(claimKey) {
679
+ const existing = this.getIdentifierValue(claimKey);
680
+ if (existing)
681
+ return existing;
682
+ const generated = createCanonicalIdentifierUrn();
683
+ this.setIdentifierValue(claimKey, generated);
684
+ return generated;
685
+ }
686
+ }
443
687
  /**
444
688
  * Reduced Observation component-style editor surface.
445
689
  *
@@ -676,6 +920,590 @@ export class ObservationEntryEditor extends VitalSignEntryEditor {
676
920
  getHasMember() {
677
921
  return normalizeOptionalIdentifier(this.getClaim(ObservationClaim.HasMember));
678
922
  }
923
+ setHasMemberList(references) {
924
+ const next = setClaimValues({}, ObservationClaim.HasMember, references);
925
+ const normalized = normalizeOptionalIdentifier(next[ObservationClaim.HasMember]);
926
+ if (!normalized) {
927
+ this.removeClaim(ObservationClaim.HasMember);
928
+ return this;
929
+ }
930
+ return this.setClaim(ObservationClaim.HasMember, normalized);
931
+ }
932
+ getHasMemberList() {
933
+ return getClaimValues(this.getClaims(), ObservationClaim.HasMember);
934
+ }
935
+ }
936
+ /** Claims-first editor for one staged AllergyIntolerance entry. */
937
+ export class AllergyIntoleranceEntryEditor extends ClinicalResourceEntryEditor {
938
+ setIdentifier(identifier) { return this.setIdentifierValue(AllergyIntoleranceClaim.Identifier, identifier); }
939
+ getIdentifier() { return this.getIdentifierValue(AllergyIntoleranceClaim.Identifier); }
940
+ ensureIdentifier() { return this.ensureIdentifierValue(AllergyIntoleranceClaim.Identifier); }
941
+ setSubject(subject) { return this.setSubjectClaims(AllergyIntoleranceClaim.Subject, AllergyIntoleranceClaim.Patient, subject); }
942
+ getSubject() { return this.getSubjectClaims(AllergyIntoleranceClaim.Subject, AllergyIntoleranceClaim.Patient); }
943
+ setCode(code) { return this.setScalarClaim(AllergyIntoleranceClaim.Code, code); }
944
+ getCode() { return this.getScalarClaim(AllergyIntoleranceClaim.Code); }
945
+ setClinicalStatus(status) { return this.setScalarClaim(AllergyIntoleranceClaim.ClinicalStatus, status); }
946
+ getClinicalStatus() { return this.getScalarClaim(AllergyIntoleranceClaim.ClinicalStatus); }
947
+ setVerificationStatus(status) { return this.setScalarClaim(AllergyIntoleranceClaim.VerificationStatus, status); }
948
+ getVerificationStatus() { return this.getScalarClaim(AllergyIntoleranceClaim.VerificationStatus); }
949
+ setCategory(category) { return this.setScalarClaim(AllergyIntoleranceClaim.Category, category); }
950
+ getCategory() { return this.getScalarClaim(AllergyIntoleranceClaim.Category); }
951
+ setCriticality(criticality) { return this.setScalarClaim(AllergyIntoleranceClaim.Criticality, criticality); }
952
+ getCriticality() { return this.getScalarClaim(AllergyIntoleranceClaim.Criticality); }
953
+ setOnsetDateTime(value) { return this.setScalarClaim(AllergyIntoleranceClaim.OnsetDateTime, value); }
954
+ getOnsetDateTime() { return this.getScalarClaim(AllergyIntoleranceClaim.OnsetDateTime); }
955
+ setRecorder(reference) { return this.setScalarClaim(AllergyIntoleranceClaim.Recorder, reference); }
956
+ getRecorder() { return this.getScalarClaim(AllergyIntoleranceClaim.Recorder); }
957
+ setContainedDocumentIdentifierList(identifiers) { return this.setCsvClaimList(AllergyIntoleranceClaim.ContainedDocuments, identifiers); }
958
+ getContainedDocumentIdentifierList() { return this.getCsvClaimList(AllergyIntoleranceClaim.ContainedDocuments); }
959
+ }
960
+ /** Claims-first editor for one staged Condition entry. */
961
+ export class ConditionEntryEditor extends ClinicalResourceEntryEditor {
962
+ setIdentifier(identifier) { return this.setIdentifierValue(ConditionClaim.Identifier, identifier); }
963
+ getIdentifier() { return this.getIdentifierValue(ConditionClaim.Identifier); }
964
+ ensureIdentifier() { return this.ensureIdentifierValue(ConditionClaim.Identifier); }
965
+ setSubject(subject) { return this.setSubjectClaims(ConditionClaim.Subject, ConditionClaim.Subject, subject); }
966
+ getSubject() { return this.getSubjectClaims(ConditionClaim.Subject, ConditionClaim.Subject); }
967
+ setCode(code) { return this.setScalarClaim(ConditionClaim.Code, code); }
968
+ getCode() { return this.getScalarClaim(ConditionClaim.Code); }
969
+ setClinicalStatus(status) { return this.setScalarClaim(ConditionClaim.ClinicalStatus, status); }
970
+ getClinicalStatus() { return this.getScalarClaim(ConditionClaim.ClinicalStatus); }
971
+ setVerificationStatus(status) { return this.setScalarClaim(ConditionClaim.VerificationStatus, status); }
972
+ getVerificationStatus() { return this.getScalarClaim(ConditionClaim.VerificationStatus); }
973
+ setCategory(category) { return this.setScalarClaim(ConditionClaim.Category, category); }
974
+ getCategory() { return this.getScalarClaim(ConditionClaim.Category); }
975
+ setSeverity(severity) { return this.setScalarClaim(ConditionClaim.Severity, severity); }
976
+ getSeverity() { return this.getScalarClaim(ConditionClaim.Severity); }
977
+ setOnsetDateTime(value) { return this.setScalarClaim(ConditionClaim.OnsetDateTime, value); }
978
+ getOnsetDateTime() { return this.getScalarClaim(ConditionClaim.OnsetDateTime); }
979
+ setRecorder(reference) { return this.setScalarClaim(ConditionClaim.Recorder, reference); }
980
+ getRecorder() { return this.getScalarClaim(ConditionClaim.Recorder); }
981
+ setContainedDocumentIdentifierList(identifiers) { return this.setCsvClaimList(ConditionClaim.ContainedDocuments, identifiers); }
982
+ getContainedDocumentIdentifierList() { return this.getCsvClaimList(ConditionClaim.ContainedDocuments); }
983
+ }
984
+ /** Claims-first editor for one staged MedicationStatement entry. */
985
+ export class MedicationStatementEntryEditor extends ClinicalResourceEntryEditor {
986
+ setIdentifier(identifier) { return this.setIdentifierValue(MedicationStatementClaim.Identifier, identifier); }
987
+ getIdentifier() { return this.getIdentifierValue(MedicationStatementClaim.Identifier); }
988
+ ensureIdentifier() { return this.ensureIdentifierValue(MedicationStatementClaim.Identifier); }
989
+ setSubject(subject) { return this.setSubjectClaims(MedicationStatementClaim.Subject, MedicationStatementClaim.Patient, subject); }
990
+ getSubject() { return this.getSubjectClaims(MedicationStatementClaim.Subject, MedicationStatementClaim.Patient); }
991
+ setStatus(status) { return this.setScalarClaim(MedicationStatementClaim.Status, status); }
992
+ getStatus() { return this.getScalarClaim(MedicationStatementClaim.Status); }
993
+ setEffective(value) { return this.setScalarClaim(MedicationStatementClaim.Effective, value); }
994
+ getEffective() { return this.getScalarClaim(MedicationStatementClaim.Effective); }
995
+ setCode(code) { return this.setScalarClaim(MedicationStatementClaim.Code, code); }
996
+ getCode() { return this.getScalarClaim(MedicationStatementClaim.Code); }
997
+ setMedicationText(text) { return this.setScalarClaim(MedicationStatementClaim.MedicationText, text); }
998
+ getMedicationText() { return this.getScalarClaim(MedicationStatementClaim.MedicationText); }
999
+ setNote(note) { return this.setScalarClaim(MedicationStatementClaim.Note, note); }
1000
+ getNote() { return this.getScalarClaim(MedicationStatementClaim.Note); }
1001
+ setDosageInstruction(value) { return this.setScalarClaim(MedicationStatementClaim.DosageInstruction, value); }
1002
+ getDosageInstruction() { return this.getScalarClaim(MedicationStatementClaim.DosageInstruction); }
1003
+ setCategoryList(values) { return this.setCsvClaimList(MedicationStatementClaim.Category, values); }
1004
+ getCategoryList() { return this.getCsvClaimList(MedicationStatementClaim.Category); }
1005
+ setDoseQuantityValue(value) { return this.setNumberClaim(MedicationStatementClaimsFhirApiExtended.DoseQuantityValue, value); }
1006
+ getDoseQuantityValue() { return this.getNumberClaim(MedicationStatementClaimsFhirApiExtended.DoseQuantityValue); }
1007
+ setDoseQuantityUnit(value) { return this.setScalarClaim(MedicationStatementClaimsFhirApiExtended.DoseQuantityUnit, value); }
1008
+ getDoseQuantityUnit() { return this.getScalarClaim(MedicationStatementClaimsFhirApiExtended.DoseQuantityUnit); }
1009
+ setTimingFrequency(value) { return this.setNumberClaim(MedicationStatementClaimsFhirApiExtended.TimingFrequency, value); }
1010
+ getTimingFrequency() { return this.getNumberClaim(MedicationStatementClaimsFhirApiExtended.TimingFrequency); }
1011
+ setTimingPeriod(value) { return this.setNumberClaim(MedicationStatementClaimsFhirApiExtended.TimingPeriod, value); }
1012
+ getTimingPeriod() { return this.getNumberClaim(MedicationStatementClaimsFhirApiExtended.TimingPeriod); }
1013
+ setTimingPeriodUnit(value) { return this.setScalarClaim(MedicationStatementClaimsFhirApiExtended.TimingPeriodUnit, value); }
1014
+ getTimingPeriodUnit() { return this.getScalarClaim(MedicationStatementClaimsFhirApiExtended.TimingPeriodUnit); }
1015
+ setDosageAsNeeded(value) { return this.setBooleanClaim(MedicationStatementClaimsFhirApiExtended.DosageAsNeeded, value); }
1016
+ getDosageAsNeeded() { return this.getBooleanClaim(MedicationStatementClaimsFhirApiExtended.DosageAsNeeded); }
1017
+ }
1018
+ /** Claims-first editor for one staged DocumentReference entry. */
1019
+ export class DocumentReferenceEntryEditor extends ClinicalResourceEntryEditor {
1020
+ setIdentifier(identifier) { return this.setIdentifierValue(DocumentReferenceClaim.Identifier, identifier); }
1021
+ getIdentifier() { return this.getIdentifierValue(DocumentReferenceClaim.Identifier); }
1022
+ ensureIdentifier() { return this.ensureIdentifierValue(DocumentReferenceClaim.Identifier); }
1023
+ setSubject(subject) { return this.setScalarClaim(DocumentReferenceClaim.Subject, subject); }
1024
+ getSubject() { return this.getScalarClaim(DocumentReferenceClaim.Subject); }
1025
+ setType(value) { return this.setScalarClaim(DocumentReferenceClaim.Type, value); }
1026
+ getType() { return this.getScalarClaim(DocumentReferenceClaim.Type); }
1027
+ setCategory(value) { return this.setScalarClaim(DocumentReferenceClaim.Category, value); }
1028
+ getCategory() { return this.getScalarClaim(DocumentReferenceClaim.Category); }
1029
+ setContentType(value) { return this.setScalarClaim(DocumentReferenceClaim.ContentType, value); }
1030
+ getContentType() { return this.getScalarClaim(DocumentReferenceClaim.ContentType); }
1031
+ setContentData(value) { return this.setScalarClaim(DocumentReferenceClaim.ContentData, value); }
1032
+ getContentData() { return this.getScalarClaim(DocumentReferenceClaim.ContentData); }
1033
+ setContentHash(value) { return this.setScalarClaim(DocumentReferenceClaim.ContentHash, value); }
1034
+ getContentHash() { return this.getScalarClaim(DocumentReferenceClaim.ContentHash); }
1035
+ setLocation(value) { return this.setScalarClaim(DocumentReferenceClaim.Location, value); }
1036
+ getLocation() { return this.getScalarClaim(DocumentReferenceClaim.Location); }
1037
+ setDescription(value) { return this.setScalarClaim(DocumentReferenceClaim.Description, value); }
1038
+ getDescription() { return this.getScalarClaim(DocumentReferenceClaim.Description); }
1039
+ setDate(value) { return this.setScalarClaim(DocumentReferenceClaim.Date, value); }
1040
+ getDate() { return this.getScalarClaim(DocumentReferenceClaim.Date); }
1041
+ setAuthor(value) { return this.setScalarClaim(DocumentReferenceClaim.Author, value); }
1042
+ getAuthor() { return this.getScalarClaim(DocumentReferenceClaim.Author); }
1043
+ }
1044
+ /** Claims-first editor for one staged CarePlan entry. */
1045
+ export class CarePlanEntryEditor extends ClinicalResourceEntryEditor {
1046
+ setIdentifier(identifier) { return this.setIdentifierValue(CarePlanClaim.Identifier, identifier); }
1047
+ getIdentifier() { return this.getIdentifierValue(CarePlanClaim.Identifier); }
1048
+ ensureIdentifier() { return this.ensureIdentifierValue(CarePlanClaim.Identifier); }
1049
+ setSubject(subject) { return this.setSubjectClaims(CarePlanClaim.Subject, CarePlanClaim.Patient, subject); }
1050
+ getSubject() { return this.getSubjectClaims(CarePlanClaim.Subject, CarePlanClaim.Patient); }
1051
+ setStatus(value) { return this.setScalarClaim(CarePlanClaim.Status, value); }
1052
+ getStatus() { return this.getScalarClaim(CarePlanClaim.Status); }
1053
+ setIntent(value) { return this.setScalarClaim(CarePlanClaim.Intent, value); }
1054
+ getIntent() { return this.getScalarClaim(CarePlanClaim.Intent); }
1055
+ setCategory(value) { return this.setScalarClaim(CarePlanClaim.Category, value); }
1056
+ getCategory() { return this.getScalarClaim(CarePlanClaim.Category); }
1057
+ setEncounter(value) { return this.setScalarClaim(CarePlanClaim.Encounter, value); }
1058
+ getEncounter() { return this.getScalarClaim(CarePlanClaim.Encounter); }
1059
+ setDate(value) { return this.setScalarClaim(CarePlanClaim.Date, value); }
1060
+ getDate() { return this.getScalarClaim(CarePlanClaim.Date); }
1061
+ setNote(value) { return this.setScalarClaim(CarePlanClaim.Note, value); }
1062
+ getNote() { return this.getScalarClaim(CarePlanClaim.Note); }
1063
+ }
1064
+ /** Claims-first editor for one staged Flag entry. */
1065
+ export class FlagEntryEditor extends ClinicalResourceEntryEditor {
1066
+ setIdentifier(identifier) { return this.setIdentifierValue(FlagClaim.Identifier, identifier); }
1067
+ getIdentifier() { return this.getIdentifierValue(FlagClaim.Identifier); }
1068
+ ensureIdentifier() { return this.ensureIdentifierValue(FlagClaim.Identifier); }
1069
+ setSubject(subject) { return this.setSubjectClaims(FlagClaim.Subject, FlagClaim.Patient, subject); }
1070
+ getSubject() { return this.getSubjectClaims(FlagClaim.Subject, FlagClaim.Patient); }
1071
+ setStatus(value) { return this.setScalarClaim(FlagClaim.Status, value); }
1072
+ getStatus() { return this.getScalarClaim(FlagClaim.Status); }
1073
+ setCategory(value) { return this.setScalarClaim(FlagClaim.Category, value); }
1074
+ getCategory() { return this.getScalarClaim(FlagClaim.Category); }
1075
+ setCode(value) { return this.setScalarClaim(FlagClaim.Code, value); }
1076
+ getCode() { return this.getScalarClaim(FlagClaim.Code); }
1077
+ setDate(value) { return this.setScalarClaim(FlagClaim.Date, value); }
1078
+ getDate() { return this.getScalarClaim(FlagClaim.Date); }
1079
+ setEncounter(value) { return this.setScalarClaim(FlagClaim.Encounter, value); }
1080
+ getEncounter() { return this.getScalarClaim(FlagClaim.Encounter); }
1081
+ setPeriodStart(value) { return this.setScalarClaim(FlagClaim.PeriodStart, value); }
1082
+ getPeriodStart() { return this.getScalarClaim(FlagClaim.PeriodStart); }
1083
+ setPeriodEnd(value) { return this.setScalarClaim(FlagClaim.PeriodEnd, value); }
1084
+ getPeriodEnd() { return this.getScalarClaim(FlagClaim.PeriodEnd); }
1085
+ }
1086
+ /** Claims-first editor for one staged ClinicalImpression entry. */
1087
+ export class ClinicalImpressionEntryEditor extends ClinicalResourceEntryEditor {
1088
+ setIdentifier(identifier) { return this.setIdentifierValue(ClinicalImpressionClaim.Identifier, identifier); }
1089
+ getIdentifier() { return this.getIdentifierValue(ClinicalImpressionClaim.Identifier); }
1090
+ ensureIdentifier() { return this.ensureIdentifierValue(ClinicalImpressionClaim.Identifier); }
1091
+ setSubject(subject) { return this.setSubjectClaims(ClinicalImpressionClaim.Subject, ClinicalImpressionClaim.Subject, subject); }
1092
+ getSubject() { return this.getSubjectClaims(ClinicalImpressionClaim.Subject, ClinicalImpressionClaim.Subject); }
1093
+ setStatus(value) { return this.setScalarClaim(ClinicalImpressionClaim.Status, value); }
1094
+ getStatus() { return this.getScalarClaim(ClinicalImpressionClaim.Status); }
1095
+ setDescription(value) { return this.setScalarClaim(ClinicalImpressionClaim.Description, value); }
1096
+ getDescription() { return this.getScalarClaim(ClinicalImpressionClaim.Description); }
1097
+ setEncounter(value) { return this.setScalarClaim(ClinicalImpressionClaim.Encounter, value); }
1098
+ getEncounter() { return this.getScalarClaim(ClinicalImpressionClaim.Encounter); }
1099
+ setEffectiveDateTime(value) { return this.setScalarClaim(ClinicalImpressionClaim.EffectiveDateTime, value); }
1100
+ getEffectiveDateTime() { return this.getScalarClaim(ClinicalImpressionClaim.EffectiveDateTime); }
1101
+ setAssessor(value) { return this.setScalarClaim(ClinicalImpressionClaim.Assessor, value); }
1102
+ getAssessor() { return this.getScalarClaim(ClinicalImpressionClaim.Assessor); }
1103
+ setSummary(value) { return this.setScalarClaim(ClinicalImpressionClaim.Summary, value); }
1104
+ getSummary() { return this.getScalarClaim(ClinicalImpressionClaim.Summary); }
1105
+ }
1106
+ /** Claims-first editor for one staged Device entry. */
1107
+ export class DeviceEntryEditor extends ClinicalResourceEntryEditor {
1108
+ setIdentifier(identifier) { return this.setIdentifierValue(DeviceClaim.Identifier, identifier); }
1109
+ getIdentifier() { return this.getIdentifierValue(DeviceClaim.Identifier); }
1110
+ ensureIdentifier() { return this.ensureIdentifierValue(DeviceClaim.Identifier); }
1111
+ setPatient(value) { return this.setScalarClaim(DeviceClaim.Patient, value); }
1112
+ getPatient() { return this.getScalarClaim(DeviceClaim.Patient); }
1113
+ setStatus(value) { return this.setScalarClaim(DeviceClaim.Status, value); }
1114
+ getStatus() { return this.getScalarClaim(DeviceClaim.Status); }
1115
+ setType(value) { return this.setScalarClaim(DeviceClaim.Type, value); }
1116
+ getType() { return this.getScalarClaim(DeviceClaim.Type); }
1117
+ setManufacturer(value) { return this.setScalarClaim(DeviceClaim.Manufacturer, value); }
1118
+ getManufacturer() { return this.getScalarClaim(DeviceClaim.Manufacturer); }
1119
+ setModel(value) { return this.setScalarClaim(DeviceClaim.Model, value); }
1120
+ getModel() { return this.getScalarClaim(DeviceClaim.Model); }
1121
+ setDeviceName(value) { return this.setScalarClaim(DeviceClaim.DeviceName, value); }
1122
+ getDeviceName() { return this.getScalarClaim(DeviceClaim.DeviceName); }
1123
+ setSerialNumber(value) { return this.setScalarClaim(DeviceClaim.SerialNumber, value); }
1124
+ getSerialNumber() { return this.getScalarClaim(DeviceClaim.SerialNumber); }
1125
+ setOrganization(value) { return this.setScalarClaim(DeviceClaim.Organization, value); }
1126
+ getOrganization() { return this.getScalarClaim(DeviceClaim.Organization); }
1127
+ setLocation(value) { return this.setScalarClaim(DeviceClaim.Location, value); }
1128
+ getLocation() { return this.getScalarClaim(DeviceClaim.Location); }
1129
+ setUrl(value) { return this.setScalarClaim(DeviceClaim.Url, value); }
1130
+ getUrl() { return this.getScalarClaim(DeviceClaim.Url); }
1131
+ setNote(value) { return this.setScalarClaim(DeviceClaim.Note, value); }
1132
+ getNote() { return this.getScalarClaim(DeviceClaim.Note); }
1133
+ }
1134
+ /** Claims-first editor for one staged DeviceUseStatement entry. */
1135
+ export class DeviceUseStatementEntryEditor extends ClinicalResourceEntryEditor {
1136
+ setIdentifier(identifier) { return this.setIdentifierValue(DeviceUseStatementClaim.Identifier, identifier); }
1137
+ getIdentifier() { return this.getIdentifierValue(DeviceUseStatementClaim.Identifier); }
1138
+ ensureIdentifier() { return this.ensureIdentifierValue(DeviceUseStatementClaim.Identifier); }
1139
+ setSubject(subject) { return this.setSubjectClaims(DeviceUseStatementClaim.Subject, DeviceUseStatementClaim.Subject, subject); }
1140
+ getSubject() { return this.getSubjectClaims(DeviceUseStatementClaim.Subject, DeviceUseStatementClaim.Subject); }
1141
+ setStatus(value) { return this.setScalarClaim(DeviceUseStatementClaim.Status, value); }
1142
+ getStatus() { return this.getScalarClaim(DeviceUseStatementClaim.Status); }
1143
+ setDevice(value) { return this.setScalarClaim(DeviceUseStatementClaim.Device, value); }
1144
+ getDevice() { return this.getScalarClaim(DeviceUseStatementClaim.Device); }
1145
+ setRecordedOn(value) { return this.setScalarClaim(DeviceUseStatementClaim.RecordedOn, value); }
1146
+ getRecordedOn() { return this.getScalarClaim(DeviceUseStatementClaim.RecordedOn); }
1147
+ setTimingDateTime(value) { return this.setScalarClaim(DeviceUseStatementClaim.TimingDateTime, value); }
1148
+ getTimingDateTime() { return this.getScalarClaim(DeviceUseStatementClaim.TimingDateTime); }
1149
+ setReasonCode(value) { return this.setScalarClaim(DeviceUseStatementClaim.ReasonCode, value); }
1150
+ getReasonCode() { return this.getScalarClaim(DeviceUseStatementClaim.ReasonCode); }
1151
+ setSource(value) { return this.setScalarClaim(DeviceUseStatementClaim.Source, value); }
1152
+ getSource() { return this.getScalarClaim(DeviceUseStatementClaim.Source); }
1153
+ }
1154
+ /** Claims-first editor for one staged Encounter entry. */
1155
+ export class EncounterEntryEditor extends ClinicalResourceEntryEditor {
1156
+ setIdentifier(identifier) { return this.setIdentifierValue(EncounterClaim.Identifier, identifier); }
1157
+ getIdentifier() { return this.getIdentifierValue(EncounterClaim.Identifier); }
1158
+ ensureIdentifier() { return this.ensureIdentifierValue(EncounterClaim.Identifier); }
1159
+ setSubject(subject) { return this.setSubjectClaims(EncounterClaim.Subject, EncounterClaim.Patient, subject); }
1160
+ getSubject() { return this.getSubjectClaims(EncounterClaim.Subject, EncounterClaim.Patient); }
1161
+ setStatus(value) { return this.setScalarClaim(EncounterClaim.Status, value); }
1162
+ getStatus() { return this.getScalarClaim(EncounterClaim.Status); }
1163
+ setClass(value) { return this.setScalarClaim(EncounterClaim.Class, value); }
1164
+ getClass() { return this.getScalarClaim(EncounterClaim.Class); }
1165
+ setType(value) { return this.setScalarClaim(EncounterClaim.Type, value); }
1166
+ getType() { return this.getScalarClaim(EncounterClaim.Type); }
1167
+ setParticipantList(values) { return this.setCsvClaimList(EncounterClaim.Participant, values); }
1168
+ getParticipantList() { return this.getCsvClaimList(EncounterClaim.Participant); }
1169
+ setServiceProvider(value) { return this.setScalarClaim(EncounterClaim.ServiceProvider, value); }
1170
+ getServiceProvider() { return this.getScalarClaim(EncounterClaim.ServiceProvider); }
1171
+ setPeriodStart(value) { return this.setScalarClaim(EncounterClaim.PeriodStart, value); }
1172
+ getPeriodStart() { return this.getScalarClaim(EncounterClaim.PeriodStart); }
1173
+ setPeriodEnd(value) { return this.setScalarClaim(EncounterClaim.PeriodEnd, value); }
1174
+ getPeriodEnd() { return this.getScalarClaim(EncounterClaim.PeriodEnd); }
1175
+ setReasonCode(value) { return this.setScalarClaim(EncounterClaim.ReasonCode, value); }
1176
+ getReasonCode() { return this.getScalarClaim(EncounterClaim.ReasonCode); }
1177
+ }
1178
+ /** Claims-first editor for one staged Coverage entry. */
1179
+ export class CoverageEntryEditor extends ClinicalResourceEntryEditor {
1180
+ setIdentifier(identifier) { return this.setIdentifierValue(CoverageClaim.Identifier, identifier); }
1181
+ getIdentifier() { return this.getIdentifierValue(CoverageClaim.Identifier); }
1182
+ ensureIdentifier() { return this.ensureIdentifierValue(CoverageClaim.Identifier); }
1183
+ setStatus(value) { return this.setScalarClaim(CoverageClaim.Status, value); }
1184
+ getStatus() { return this.getScalarClaim(CoverageClaim.Status); }
1185
+ setType(value) { return this.setScalarClaim(CoverageClaim.Type, value); }
1186
+ getType() { return this.getScalarClaim(CoverageClaim.Type); }
1187
+ setPolicyHolder(value) { return this.setScalarClaim(CoverageClaim.PolicyHolder, value); }
1188
+ getPolicyHolder() { return this.getScalarClaim(CoverageClaim.PolicyHolder); }
1189
+ setSubscriber(value) { return this.setScalarClaim(CoverageClaim.Subscriber, value); }
1190
+ getSubscriber() { return this.getScalarClaim(CoverageClaim.Subscriber); }
1191
+ setBeneficiary(value) { return this.setScalarClaim(CoverageClaim.Beneficiary, value); }
1192
+ getBeneficiary() { return this.getScalarClaim(CoverageClaim.Beneficiary); }
1193
+ setRelationship(value) { return this.setScalarClaim(CoverageClaim.Relationship, value); }
1194
+ getRelationship() { return this.getScalarClaim(CoverageClaim.Relationship); }
1195
+ setPeriodStart(value) { return this.setScalarClaim(CoverageClaim.PeriodStart, value); }
1196
+ getPeriodStart() { return this.getScalarClaim(CoverageClaim.PeriodStart); }
1197
+ setPeriodEnd(value) { return this.setScalarClaim(CoverageClaim.PeriodEnd, value); }
1198
+ getPeriodEnd() { return this.getScalarClaim(CoverageClaim.PeriodEnd); }
1199
+ setPayorList(values) { return this.setCsvClaimList(CoverageClaim.Payor, values); }
1200
+ getPayorList() { return this.getCsvClaimList(CoverageClaim.Payor); }
1201
+ }
1202
+ /** Claims-first editor for one staged Immunization entry. */
1203
+ export class ImmunizationEntryEditor extends ClinicalResourceEntryEditor {
1204
+ setIdentifier(identifier) {
1205
+ return this.setIdentifierValue(ImmunizationClaim.Identifier, identifier);
1206
+ }
1207
+ getIdentifier() {
1208
+ return this.getIdentifierValue(ImmunizationClaim.Identifier);
1209
+ }
1210
+ ensureIdentifier() {
1211
+ return this.ensureIdentifierValue(ImmunizationClaim.Identifier);
1212
+ }
1213
+ setSubject(subject) {
1214
+ return this.setSubjectClaims(ImmunizationClaim.Subject, ImmunizationClaim.Patient, subject);
1215
+ }
1216
+ getSubject() {
1217
+ return this.getSubjectClaims(ImmunizationClaim.Subject, ImmunizationClaim.Patient);
1218
+ }
1219
+ setStatus(status) {
1220
+ return this.setScalarClaim(ImmunizationClaim.Status, status);
1221
+ }
1222
+ getStatus() {
1223
+ return this.getScalarClaim(ImmunizationClaim.Status);
1224
+ }
1225
+ setDate(date) {
1226
+ return this.setScalarClaim(ImmunizationClaim.Date, date);
1227
+ }
1228
+ getDate() {
1229
+ return this.getScalarClaim(ImmunizationClaim.Date);
1230
+ }
1231
+ setVaccineCode(code) {
1232
+ return this.setScalarClaim(ImmunizationClaim.VaccineCode, code);
1233
+ }
1234
+ getVaccineCode() {
1235
+ return this.getScalarClaim(ImmunizationClaim.VaccineCode);
1236
+ }
1237
+ setVaccineCodeTextLocal(text) {
1238
+ return this.setScalarClaim(ImmunizationClaim.VaccineCodeText, text);
1239
+ }
1240
+ getVaccineCodeTextLocal() {
1241
+ return this.getScalarClaim(ImmunizationClaim.VaccineCodeText);
1242
+ }
1243
+ setVaccineCodeDisplay(display) {
1244
+ return this.setScalarClaim(ImmunizationClaim.VaccineCodeDisplay, display);
1245
+ }
1246
+ getVaccineCodeDisplay() {
1247
+ return this.getScalarClaim(ImmunizationClaim.VaccineCodeDisplay);
1248
+ }
1249
+ setLocation(reference) {
1250
+ return this.setScalarClaim(ImmunizationClaim.Location, reference);
1251
+ }
1252
+ getLocation() {
1253
+ return this.getScalarClaim(ImmunizationClaim.Location);
1254
+ }
1255
+ setManufacturer(reference) {
1256
+ return this.setScalarClaim(ImmunizationClaim.Manufacturer, reference);
1257
+ }
1258
+ getManufacturer() {
1259
+ return this.getScalarClaim(ImmunizationClaim.Manufacturer);
1260
+ }
1261
+ setLotNumber(lotNumber) {
1262
+ return this.setScalarClaim(ImmunizationClaim.LotNumber, lotNumber);
1263
+ }
1264
+ getLotNumber() {
1265
+ return this.getScalarClaim(ImmunizationClaim.LotNumber);
1266
+ }
1267
+ setPerformerList(references) {
1268
+ return this.setCsvClaimList(ImmunizationClaim.Performer, references);
1269
+ }
1270
+ getPerformerList() {
1271
+ return this.getCsvClaimList(ImmunizationClaim.Performer);
1272
+ }
1273
+ setReasonCode(code) {
1274
+ return this.setScalarClaim(ImmunizationClaim.ReasonCode, code);
1275
+ }
1276
+ getReasonCode() {
1277
+ return this.getScalarClaim(ImmunizationClaim.ReasonCode);
1278
+ }
1279
+ setStatusReason(reason) {
1280
+ return this.setScalarClaim(ImmunizationClaim.StatusReason, reason);
1281
+ }
1282
+ getStatusReason() {
1283
+ return this.getScalarClaim(ImmunizationClaim.StatusReason);
1284
+ }
1285
+ setTargetDisease(code) {
1286
+ return this.setScalarClaim(ImmunizationClaim.TargetDisease, code);
1287
+ }
1288
+ getTargetDisease() {
1289
+ return this.getScalarClaim(ImmunizationClaim.TargetDisease);
1290
+ }
1291
+ setDoseSequence(sequence) {
1292
+ return this.setScalarClaim(ImmunizationClaim.DoseSequence, sequence);
1293
+ }
1294
+ getDoseSequence() {
1295
+ return this.getScalarClaim(ImmunizationClaim.DoseSequence);
1296
+ }
1297
+ setSeries(series) {
1298
+ return this.setScalarClaim(ImmunizationClaim.Series, series);
1299
+ }
1300
+ getSeries() {
1301
+ return this.getScalarClaim(ImmunizationClaim.Series);
1302
+ }
1303
+ setReactionDate(date) {
1304
+ return this.setScalarClaim(ImmunizationClaim.ReactionDate, date);
1305
+ }
1306
+ getReactionDate() {
1307
+ return this.getScalarClaim(ImmunizationClaim.ReactionDate);
1308
+ }
1309
+ setNote(note) {
1310
+ return this.setScalarClaim(ImmunizationClaim.Note, note);
1311
+ }
1312
+ getNote() {
1313
+ return this.getScalarClaim(ImmunizationClaim.Note);
1314
+ }
1315
+ setClinicalNote(note) {
1316
+ return this.setNote(note);
1317
+ }
1318
+ getClinicalNote() {
1319
+ return this.getNote();
1320
+ }
1321
+ }
1322
+ /** Claims-first editor for one staged Procedure entry. */
1323
+ export class ProcedureEntryEditor extends ClinicalResourceEntryEditor {
1324
+ setIdentifier(identifier) {
1325
+ return this.setIdentifierValue(ProcedureClaim.Identifier, identifier);
1326
+ }
1327
+ getIdentifier() {
1328
+ return this.getIdentifierValue(ProcedureClaim.Identifier);
1329
+ }
1330
+ ensureIdentifier() {
1331
+ return this.ensureIdentifierValue(ProcedureClaim.Identifier);
1332
+ }
1333
+ setSubject(subject) {
1334
+ return this.setSubjectClaims(ProcedureClaim.Subject, ProcedureClaim.Patient, subject);
1335
+ }
1336
+ getSubject() {
1337
+ return this.getSubjectClaims(ProcedureClaim.Subject, ProcedureClaim.Patient);
1338
+ }
1339
+ setStatus(status) {
1340
+ return this.setScalarClaim(ProcedureClaim.Status, status);
1341
+ }
1342
+ getStatus() {
1343
+ return this.getScalarClaim(ProcedureClaim.Status);
1344
+ }
1345
+ setDate(date) {
1346
+ return this.setScalarClaim(ProcedureClaim.Date, date);
1347
+ }
1348
+ getDate() {
1349
+ return this.getScalarClaim(ProcedureClaim.Date);
1350
+ }
1351
+ setCode(code) {
1352
+ return this.setScalarClaim(ProcedureClaim.Code, code);
1353
+ }
1354
+ getCode() {
1355
+ return this.getScalarClaim(ProcedureClaim.Code);
1356
+ }
1357
+ setCodeTextLocal(text) {
1358
+ return this.setScalarClaim(ProcedureClaim.CodeText, text);
1359
+ }
1360
+ getCodeTextLocal() {
1361
+ return this.getScalarClaim(ProcedureClaim.CodeText);
1362
+ }
1363
+ setCodeDisplay(display) {
1364
+ return this.setScalarClaim(ProcedureClaim.CodeDisplay, display);
1365
+ }
1366
+ getCodeDisplay() {
1367
+ return this.getScalarClaim(ProcedureClaim.CodeDisplay);
1368
+ }
1369
+ setEncounter(reference) {
1370
+ return this.setScalarClaim(ProcedureClaim.Encounter, reference);
1371
+ }
1372
+ getEncounter() {
1373
+ return this.getScalarClaim(ProcedureClaim.Encounter);
1374
+ }
1375
+ setLocation(reference) {
1376
+ return this.setScalarClaim(ProcedureClaim.Location, reference);
1377
+ }
1378
+ getLocation() {
1379
+ return this.getScalarClaim(ProcedureClaim.Location);
1380
+ }
1381
+ setReasonCode(code) {
1382
+ return this.setScalarClaim(ProcedureClaim.ReasonCode, code);
1383
+ }
1384
+ getReasonCode() {
1385
+ return this.getScalarClaim(ProcedureClaim.ReasonCode);
1386
+ }
1387
+ setNote(note) {
1388
+ return this.setScalarClaim(ProcedureClaim.Note, note);
1389
+ }
1390
+ getNote() {
1391
+ return this.getScalarClaim(ProcedureClaim.Note);
1392
+ }
1393
+ setClinicalNote(note) {
1394
+ return this.setNote(note);
1395
+ }
1396
+ getClinicalNote() {
1397
+ return this.getNote();
1398
+ }
1399
+ setPerformerList(references) {
1400
+ return this.setCsvClaimList(ProcedureClaim.Performer, references);
1401
+ }
1402
+ getPerformerList() {
1403
+ return this.getCsvClaimList(ProcedureClaim.Performer);
1404
+ }
1405
+ setBasedOnList(references) {
1406
+ return this.setCsvClaimList(ProcedureClaim.BasedOn, references);
1407
+ }
1408
+ getBasedOnList() {
1409
+ return this.getCsvClaimList(ProcedureClaim.BasedOn);
1410
+ }
1411
+ setReasonReferenceList(references) {
1412
+ return this.setCsvClaimList(ProcedureClaim.ReasonReference, references);
1413
+ }
1414
+ getReasonReferenceList() {
1415
+ return this.getCsvClaimList(ProcedureClaim.ReasonReference);
1416
+ }
1417
+ }
1418
+ /** Claims-first editor for one staged DiagnosticReport entry. */
1419
+ export class DiagnosticReportEntryEditor extends ClinicalResourceEntryEditor {
1420
+ setIdentifier(identifier) {
1421
+ return this.setIdentifierValue(DiagnosticReportClaim.Identifier, identifier);
1422
+ }
1423
+ getIdentifier() {
1424
+ return this.getIdentifierValue(DiagnosticReportClaim.Identifier);
1425
+ }
1426
+ ensureIdentifier() {
1427
+ return this.ensureIdentifierValue(DiagnosticReportClaim.Identifier);
1428
+ }
1429
+ setSubject(subject) {
1430
+ return this.setSubjectClaims(DiagnosticReportClaim.Subject, DiagnosticReportClaim.Patient, subject);
1431
+ }
1432
+ getSubject() {
1433
+ return this.getSubjectClaims(DiagnosticReportClaim.Subject, DiagnosticReportClaim.Patient);
1434
+ }
1435
+ setStatus(status) {
1436
+ return this.setScalarClaim(DiagnosticReportClaim.Status, status);
1437
+ }
1438
+ getStatus() {
1439
+ return this.getScalarClaim(DiagnosticReportClaim.Status);
1440
+ }
1441
+ setDate(date) {
1442
+ return this.setScalarClaim(DiagnosticReportClaim.Date, date);
1443
+ }
1444
+ getDate() {
1445
+ return this.getScalarClaim(DiagnosticReportClaim.Date);
1446
+ }
1447
+ setCategory(category) {
1448
+ return this.setScalarClaim(DiagnosticReportClaim.Category, category);
1449
+ }
1450
+ getCategory() {
1451
+ return this.getScalarClaim(DiagnosticReportClaim.Category);
1452
+ }
1453
+ setCode(code) {
1454
+ return this.setScalarClaim(DiagnosticReportClaim.Code, code);
1455
+ }
1456
+ getCode() {
1457
+ return this.getScalarClaim(DiagnosticReportClaim.Code);
1458
+ }
1459
+ setEncounter(reference) {
1460
+ return this.setScalarClaim(DiagnosticReportClaim.Encounter, reference);
1461
+ }
1462
+ getEncounter() {
1463
+ return this.getScalarClaim(DiagnosticReportClaim.Encounter);
1464
+ }
1465
+ setPerformerList(references) {
1466
+ return this.setCsvClaimList(DiagnosticReportClaim.Performer, references);
1467
+ }
1468
+ getPerformerList() {
1469
+ return this.getCsvClaimList(DiagnosticReportClaim.Performer);
1470
+ }
1471
+ setResultList(references) {
1472
+ return this.setCsvClaimList(DiagnosticReportClaim.Result, references);
1473
+ }
1474
+ getResultList() {
1475
+ return this.getCsvClaimList(DiagnosticReportClaim.Result);
1476
+ }
1477
+ setSpecimenList(references) {
1478
+ return this.setCsvClaimList(DiagnosticReportClaim.Specimen, references);
1479
+ }
1480
+ getSpecimenList() {
1481
+ return this.getCsvClaimList(DiagnosticReportClaim.Specimen);
1482
+ }
1483
+ setContainedDocumentIdentifierList(identifiers) {
1484
+ return this.setCsvClaimList(DiagnosticReportClaim.ContainedDocuments, identifiers);
1485
+ }
1486
+ getContainedDocumentIdentifierList() {
1487
+ return this.getCsvClaimList(DiagnosticReportClaim.ContainedDocuments);
1488
+ }
1489
+ setPresentedFormContentType(contentType) {
1490
+ return this.setScalarClaim(DiagnosticReportClaim.PresentedFormContentType, contentType);
1491
+ }
1492
+ getPresentedFormContentType() {
1493
+ return this.getScalarClaim(DiagnosticReportClaim.PresentedFormContentType);
1494
+ }
1495
+ setPresentedFormData(data) {
1496
+ return this.setScalarClaim(DiagnosticReportClaim.PresentedFormData, data);
1497
+ }
1498
+ getPresentedFormData() {
1499
+ return this.getScalarClaim(DiagnosticReportClaim.PresentedFormData);
1500
+ }
1501
+ setPresentedFormUrl(url) {
1502
+ return this.setScalarClaim(DiagnosticReportClaim.PresentedFormUrl, url);
1503
+ }
1504
+ getPresentedFormUrl() {
1505
+ return this.getScalarClaim(DiagnosticReportClaim.PresentedFormUrl);
1506
+ }
679
1507
  }
680
1508
  /**
681
1509
  * Employee-specific editor for one staged bundle entry.