rxome-generator 1.0.4-beta.4 → 1.0.4-beta.6

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.
@@ -0,0 +1,58 @@
1
+ {
2
+ "id": "UEN167DJ04KK",
3
+ "subject": {
4
+ "dateOfBirth": "2026-02-18",
5
+ "sex": 0
6
+ },
7
+ "comment": "",
8
+ "compressedFeatures": {
9
+ "includes": [
10
+ "HP:0000111"
11
+ ],
12
+ "excludes": []
13
+ },
14
+ "interpretations": [
15
+ {
16
+ "id": "first",
17
+ "progressStatus": 3,
18
+ "diagnosis": {
19
+ "disease": {
20
+ "id": "OMIM:"
21
+ },
22
+ "genomicInterpretations": [
23
+ {
24
+ "subjectOrBiosampleId": "xfx2ybyipvr.y3n0hogaybn",
25
+ "variantInterpretation": {
26
+ "acmgPathogenicityClassification": "999",
27
+ "variationDescriptor": {
28
+ "geneContext": {
29
+ "valueId": "",
30
+ "symbol": "",
31
+ "alternateIds": [
32
+ ""
33
+ ]
34
+ },
35
+ "expressions": [],
36
+ "extensions": [
37
+ {
38
+ "name": "test-type",
39
+ "value": "Exome sequencing, long read"
40
+ }
41
+ ],
42
+ "allelicState": {
43
+ "id": "None"
44
+ }
45
+ }
46
+ }
47
+ }
48
+ ]
49
+ }
50
+ }
51
+ ],
52
+ "metaData": {
53
+ "created": "2026-02-18",
54
+ "createdBy": "Tom",
55
+ "submittedBy": "tom@kamphans.de",
56
+ "pseudonym": "UEN167DJ04KK"
57
+ }
58
+ }
@@ -155,7 +155,7 @@ export const sanitizeACMG = ( str ) => {
155
155
  if ( str == 'RISK_ALLELE' ) {
156
156
  return 999;
157
157
  }
158
- isNaN(+(str.toString()))
158
+ return isNaN(+(str.toString()))
159
159
  ? Math.max(0, ENUM_ACMG.indexOf(str.toUpperCase()))
160
160
  : +str
161
161
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rxome-generator",
3
- "version": "1.0.4-beta.4",
3
+ "version": "1.0.4-beta.6",
4
4
  "description": "Generates QR codes containing medical information for use with the FindMe2Care platform.",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/ratest.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ "id": "UEN167DJ04KK",
3
+ "subject": {
4
+ "dateOfBirth": "2026-02-18",
5
+ "sex": 0
6
+ },
7
+ "comment": "",
8
+ "compressedFeatures": {
9
+ "includes": [
10
+ "HP:0000111"
11
+ ],
12
+ "excludes": []
13
+ },
14
+ "interpretations": [
15
+ {
16
+ "id": "first",
17
+ "progressStatus": 3,
18
+ "diagnosis": {
19
+ "disease": {
20
+ "id": "OMIM:"
21
+ },
22
+ "genomicInterpretations": [
23
+ {
24
+ "subjectOrBiosampleId": "xfx2ybyipvr.y3n0hogaybn",
25
+ "variantInterpretation": {
26
+ "acmgPathogenicityClassification": "1",
27
+ "variationDescriptor": {
28
+ "geneContext": {
29
+ "valueId": "",
30
+ "symbol": "",
31
+ "alternateIds": [
32
+ ""
33
+ ]
34
+ },
35
+ "expressions": [],
36
+ "extensions": [
37
+ {
38
+ "name": "test-type",
39
+ "value": "Exome sequencing, long read"
40
+ }
41
+ ],
42
+ "allelicState": {
43
+ "id": "None"
44
+ }
45
+ }
46
+ }
47
+ }
48
+ ]
49
+ }
50
+ }
51
+ ],
52
+ "metaData": {
53
+ "created": "2026-02-18",
54
+ "createdBy": "Tom",
55
+ "submittedBy": "tom@kamphans.de",
56
+ "pseudonym": "UEN167DJ04KK"
57
+ }
58
+ }