@andes/fhir 1.12.1-beta.1 → 1.12.1-beta.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/LICENSE +674 -674
- package/README.md +2 -2
- package/dist/helpers/patientFactory.d.ts +26 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +55 -0
- package/dist/lib/allergyIntolerance.d.ts +29 -0
- package/dist/lib/bundle.d.ts +14 -0
- package/dist/lib/composition.d.ts +47 -0
- package/dist/lib/condition.d.ts +53 -0
- package/dist/lib/config.d.ts +9 -0
- package/dist/lib/config.test.d.ts +1 -0
- package/dist/lib/device.d.ts +22 -0
- package/dist/lib/device.test.d.ts +1 -0
- package/dist/lib/document-reference.d.ts +71 -0
- package/dist/lib/immunization.d.ts +44 -0
- package/dist/lib/medication.d.ts +25 -0
- package/dist/lib/medicationRequest.d.ts +42 -0
- package/dist/lib/medicationStatement.d.ts +47 -0
- package/dist/lib/organization.d.ts +6 -0
- package/dist/lib/patient.d.ts +14 -0
- package/dist/lib/patient.test.d.ts +1 -0
- package/dist/lib/practitioner.d.ts +6 -0
- package/dist/types/andes/organization.types.d.ts +39 -0
- package/dist/types/andes/patient.types.d.ts +57 -0
- package/dist/types/andes/practitioner.types.d.ts +72 -0
- package/package.json +56 -54
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export type AndesSexo = 'masculino' | 'femenino' | 'otro' | string;
|
|
2
|
+
export interface AndesContacto {
|
|
3
|
+
tipo: 'fijo' | 'celular' | 'email' | string;
|
|
4
|
+
valor: string;
|
|
5
|
+
ranking?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface AndesUbicacionLocalidad {
|
|
8
|
+
nombre: string;
|
|
9
|
+
}
|
|
10
|
+
export interface AndesUbicacionProvincia {
|
|
11
|
+
nombre: string;
|
|
12
|
+
}
|
|
13
|
+
export interface AndesUbicacionPais {
|
|
14
|
+
nombre: string;
|
|
15
|
+
}
|
|
16
|
+
export interface AndesUbicacion {
|
|
17
|
+
localidad?: AndesUbicacionLocalidad;
|
|
18
|
+
provincia?: AndesUbicacionProvincia;
|
|
19
|
+
pais?: AndesUbicacionPais;
|
|
20
|
+
}
|
|
21
|
+
export interface AndesDomicilio {
|
|
22
|
+
valor: string;
|
|
23
|
+
codigoPostal?: string;
|
|
24
|
+
ubicacion?: AndesUbicacion;
|
|
25
|
+
}
|
|
26
|
+
export interface AndesRelacionTipo {
|
|
27
|
+
nombre: string;
|
|
28
|
+
}
|
|
29
|
+
export interface AndesRelacion {
|
|
30
|
+
relacion: AndesRelacionTipo;
|
|
31
|
+
apellido: string;
|
|
32
|
+
nombre: string;
|
|
33
|
+
}
|
|
34
|
+
export interface AndesMatriculaItem {
|
|
35
|
+
matriculaNumero?: string;
|
|
36
|
+
inicio?: string;
|
|
37
|
+
fin?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface AndesProfesion {
|
|
40
|
+
nombre?: string;
|
|
41
|
+
codigo?: string;
|
|
42
|
+
tipoDeFormacion?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface AndesEspecialidad {
|
|
45
|
+
nombre?: string;
|
|
46
|
+
codigo?: string;
|
|
47
|
+
tipo?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface AndesFormacionGrado {
|
|
50
|
+
profesion: AndesProfesion;
|
|
51
|
+
matriculacion?: AndesMatriculaItem[];
|
|
52
|
+
}
|
|
53
|
+
export interface AndesFormacionPosgrado {
|
|
54
|
+
especialidad: AndesEspecialidad;
|
|
55
|
+
matriculacion?: AndesMatriculaItem[];
|
|
56
|
+
}
|
|
57
|
+
export interface AndesPractitioner {
|
|
58
|
+
_id: string;
|
|
59
|
+
documento?: string;
|
|
60
|
+
cuit?: string;
|
|
61
|
+
nombre: string;
|
|
62
|
+
apellido: string;
|
|
63
|
+
sexo?: AndesSexo;
|
|
64
|
+
fechaNacimiento?: string;
|
|
65
|
+
contacto?: AndesContacto[];
|
|
66
|
+
domicilios?: AndesDomicilio[];
|
|
67
|
+
relaciones?: AndesRelacion[];
|
|
68
|
+
formacionGrado?: AndesFormacionGrado[];
|
|
69
|
+
formacionPosgrado?: AndesFormacionPosgrado[];
|
|
70
|
+
habilitado?: boolean;
|
|
71
|
+
foto?: string;
|
|
72
|
+
}
|
package/package.json
CHANGED
|
@@ -1,54 +1,56 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@andes/fhir",
|
|
3
|
-
"version": "1.12.1-beta.
|
|
4
|
-
"engines": {
|
|
5
|
-
"node": ">=18.0.0"
|
|
6
|
-
},
|
|
7
|
-
"engineStrict": true,
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"release
|
|
18
|
-
"release:
|
|
19
|
-
"release:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"@
|
|
25
|
-
"@
|
|
26
|
-
"
|
|
27
|
-
"eslint": "^
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@andes/fhir",
|
|
3
|
+
"version": "1.12.1-beta.2",
|
|
4
|
+
"engines": {
|
|
5
|
+
"node": ">=18.0.0"
|
|
6
|
+
},
|
|
7
|
+
"engineStrict": true,
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"lint": "eslint \"src/**/*.ts\"",
|
|
12
|
+
"tsc": "tsc",
|
|
13
|
+
"tsc:w": "tsc -w",
|
|
14
|
+
"test": "jest --coverage",
|
|
15
|
+
"prepublishOnly": "rimraf dist && tsc -p ./ --outDir dist/",
|
|
16
|
+
"build": "tsc -p ./ --outDir dist",
|
|
17
|
+
"semantic-release": "semantic-release",
|
|
18
|
+
"release:beta": "dotenv -e .env -- semantic-release --branches develop",
|
|
19
|
+
"release:beta:dry": "dotenv -e .env -- semantic-release --no-ci --dry-run",
|
|
20
|
+
"release:prod": "dotenv -e .env -- semantic-release --branches master",
|
|
21
|
+
"release:prod:dry": "dotenv -e .env -- semantic-release --no-ci --branches master --dry-run"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@types/jest": "29.5.14",
|
|
25
|
+
"@types/node": "^18.19.0",
|
|
26
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
27
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
28
|
+
"dotenv-cli": "^11.0.0",
|
|
29
|
+
"eslint": "^8.57.0",
|
|
30
|
+
"jest": "29.7.0",
|
|
31
|
+
"rimraf": "^5.0.7",
|
|
32
|
+
"semantic-release": "^20.1.0",
|
|
33
|
+
"ts-jest": "29.2.5",
|
|
34
|
+
"ts-node": "^10.9.2",
|
|
35
|
+
"typescript": "5.3.3"
|
|
36
|
+
},
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@types/fhir": "^0.0.41",
|
|
39
|
+
"moment": "2.29.4"
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"dist/**/*"
|
|
43
|
+
],
|
|
44
|
+
"release": {
|
|
45
|
+
"branches": [
|
|
46
|
+
{
|
|
47
|
+
"name": "master"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "develop",
|
|
51
|
+
"channel": "beta",
|
|
52
|
+
"prerelease": "beta"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
}
|