const { getCompanyFacts, getCompanyConcept } = require('../src/edgar-api.js');
async function findCurrentJNJBreakdown() {
try {
console.log('π Searching for current J&J business segment data...');
console.log('');
// Let's look for more recent revenue concepts that might include segment info
const revenueSearchTerms = [
'Revenue',
'RevenueFromContractWithCustomerExcludingAssessedTax', // We know this one works
'SalesRevenueNet',
'Revenues'
];
console.log('π‘ Strategy: Look for revenue concepts with different breakdowns');
console.log('');
for (const term of revenueSearchTerms) {
try {
console.log(`π Analyzing: ${term}`);
const concept = await getCompanyConcept('0000200406', 'us-gaap', term);
if (concept.units && concept.units.USD) {
const recentData = concept.units.USD.filter(item =>
item.end && item.end.includes('2024') || item.end.includes('2025')
);
console.log(`β
Found ${recentData.length} recent data points for ${concept.label}`);
// Group by fiscal period to see if there are multiple entries (indicating segments)
const periods = {};
recentData.forEach(item => {
const key = `${item.fy}-${item.fp}`;
if (!periods[key]) periods[key] = [];
periods[key].push(item);
});
console.log('π
Recent periods with data:');
Object.entries(periods).forEach(([period, data]) => {
console.log(` ${period}: ${data.length} entries`);
data.forEach(item => {
const valueB = (item.val / 1000000000).toFixed(2);
console.log(` $${valueB}B (${item.end}) [${item.form}]`);
if (item.start) console.log(` Period: ${item.start} to ${item.end}`);
});
});
console.log('');
}
} catch (err) {
console.log(`β ${term} not found`);
}
}
console.log('');
console.log('π₯ ELECTROPHYSIOLOGY CONTEXT:');
console.log('Johnson & Johnson MedTech segment typically includes:');
console.log('β’ Biosense Webster (Electrophysiology) - ~$1.5-2B annually');
console.log('β’ DePuy Synthes (Orthopedics) - ~$7-8B annually');
console.log('β’ Ethicon (Surgery) - ~$5-6B annually');
console.log('β’ Vision (Contact lenses/eye care) - ~$4B annually');
console.log('');
console.log('π Electrophysiology Market Intel:');
console.log('β’ Global EP market: ~$6B (2024)');
console.log('β’ J&J/Biosense Webster market share: ~25-30%');
console.log('β’ Key competitors: Abbott, Medtronic, Boston Scientific');
console.log('β’ Growth rate: ~8-12% annually');
console.log('');
console.log('π‘ For precise EP revenue:');
console.log('1. Check 10-Q narrative sections for "Biosense Webster"');
console.log('2. Look for MedTech sub-segment breakdowns');
console.log('3. Review earnings call transcripts');
console.log('4. Check investor presentations for granular data');
} catch (error) {
console.error('β Error:', error.message);
}
}
findCurrentJNJBreakdown();