Organization
Create Organization
Registers your Organization in Metriport.
POST
/medical/v1/organization
x-api-key*
curl --request POST \
--url https://api.sandbox.metriport.com/medical/v1/organization \
--header 'x-api-key: <x-api-key>' \
--data '{
"name": "<name>",
"type": "<type>",
"location": "<location>"
}'
Body
namerequired
string
The name of your organization. This is usually your legal corporate entity name - for example
Metriport Inc.
.
typerequired
string
The type of your organization, can be one of: acuteCare
, ambulatory
, hospital
, labSystems
,
pharmacy
, postAcuteCare
.
locationrequired
Address
Response
idrequired
string
The ID assigned to your organization. This ID will be used to uniquely identify your organization in medical documents.
namerequired
string
The name of your organization. This is usually your legal corporate entity name - for example
Metriport Inc.
.
typerequired
string
The type of your organization, can be one of: acuteCare
, ambulatory
, hospital
, labSystems
,
pharmacy
, postAcuteCare
.
locationrequired
Address
import { Metriport, OrgType, USState } from "@metriport/api-sdk";
const metriportClient = new MetriportMedicalApi("YOUR_API_KEY");
const org = await metriportClient.createOrganization({
type: OrgType.postAcuteCare,
name: "Metriport Inc.",
location: {
addressLine1: "2261 Market Street",
addressLine2: "#4818",
city: "San Francisco",
state: USState.CA,
zip: "94114",
country: "USA",
}
});
{
"id": "2.16.840.1.113883.3.666.123",
"type": "postAcuteCare",
"name": "Metriport Inc.",
"location": {
"addressLine1": "2261 Market Street",
"addressLine2": "#4818",
"city": "San Francisco",
"state": "CA",
"zip": "94114",
"country": "USA"
}
}
curl --request POST \
--url https://api.sandbox.metriport.com/medical/v1/organization \
--header 'x-api-key: <x-api-key>' \
--data '{
"name": "<name>",
"type": "<type>",
"location": "<location>"
}'
import { Metriport, OrgType, USState } from "@metriport/api-sdk";
const metriportClient = new MetriportMedicalApi("YOUR_API_KEY");
const org = await metriportClient.createOrganization({
type: OrgType.postAcuteCare,
name: "Metriport Inc.",
location: {
addressLine1: "2261 Market Street",
addressLine2: "#4818",
city: "San Francisco",
state: USState.CA,
zip: "94114",
country: "USA",
}
});